ChiliPepper Auto Level With X-Controler (Need Help)

So I’m currently trying to use my X-carve to do some PCB milling, i want to be able to use the auto leveling function, I’ve tried rewiring the X-Controller to use the Z- Limit and the Z-probe to try to achieve this but each attempt has resulted in a loss of at milling bit… I’m currently trying to fallow this project guide ( I don’t know if I’ve missed something or not. Anyone have any idea or know how to fix my problem?

Here is a video it seems to explain it well.