The motors have been running using a different script based on the built in Stepper Library, which is why I believe it's a programming issue. Can the power demand change using a different library?
And also, would it be feasible to use the Stepper library or the Basic code you wrote for checking for limit switches?