AccelStepper library not working.

Im trying to move 2 stepper motors at the same time using the AccelStepper library but it doesnt work. Im using 2 l293d’s.

#include <AccelStepper.h>

AccelStepper stepper1; // Defaults to 4 pins on 2, 3, 4, 5
AccelStepper stepper2 (7,8,9,10);
void setup()

void loop()
    stepper2.moveTo(1000); // where m2val is a variable I've received from processing;
    stepper1.moveTo(1000); // same for m1val;

Only stepper1 moves, the other stepper does nothing.

The first thing to try is to swap the two motors to see if the problem is the motor or the code. If the problem moves with the motor it's probably the motor.