I'm sorry if this is in the wrong place, but here goes.
I've included a picture below of the code I'm using (it won't let me upload a picture of my wiring), but I have 1 Arduino linked to a Joystick that controls 2 drivers and stepper motors (all from a UNO R3 Kit). My problem is that the y-axis motor is constantly spinning (receiving the command to rotate in one direction). I've checked my wiring and changed out most of these parts, but the strange thing is that if I switch which driver is plugged into pins 8, 10, 9, and 11, it's the one plugged into those pins that will spin continuously. Do y'all have any suggestions? I'm really quite unsure as to what to try next.