Your problem is likely caused by trying to move the stepper motor inside an interrupt function.
The approach to finding the starting point is faulty. Write a separate function to just test the pin and if not at the set point, move the stepper ONE step and do it all over again until you find the set point. Never try an interrupt while searching for the starting point of a stepper.
Paul