Programming stepper motors to move until limit switches

I will try to add this in thank you.

I was trying to remove as many of the delays as possible, but am having issues with getting the sensors to 'continually' check the sensor status while in the loop. That is why some of those have small delays- simply because I was trying to get them to check and update more often. How would you go about trying to remove some more of these?