steppermotor with big easy stepper shield and accelstepper library

The Serial.print() lines take time. During that time, the stepper gets the opportunity to move. Without them, the for loop(s) complete so fast that the stepper never gets an opportunity to move. The infinite loop at the end then never gives the stepper an opportunity to move, either.