What the code does is rotate a steppermotor 90 degrees and take a photo.
How is your stepper motor connected to the Arduino? Why are you not using the Stepper library?
Holding a pin HIGH or LOW like that looks weird.
I changed the code but the stepper isn't moving.. Am i missing something?
Yes, you are. Debug statements.