making a function is really a good idea. But i didn't get the part
I strongly suspect that you are going to have to replace delay(millisBetweenSteps) with the Blink Without Delay technique. Using delay() is fine for a simple demo but it will hardly be appropriate with 6 motors.
and i don't want my motors to move a single step at a time, so i will just program it for 50 steps at a time.