FIXED: I took apart the mainboard to check all cables once more and found that the Y Z labels on the wires were swapped for the stop switch cables. So they were not being triggered correctly. After swapping the wires it worked.