stepper motor code on arduino uno stack with motor shield v2.0

this is the code that i wrote .
#include <Wire.h>
#include <Adafruit_MotorShield.h>
#include "utility/Adafruit_PWMServoDriver.h"

Adafruit_MotorShield AFMS = Adafruit_MotorShield();

Adafruit_StepperMotor *myMotor = AFMS.getStepper(200, 2);

void setup() {
Serial.begin(9600);

AFMS.begin();

myMotor->setSpeed(10); // 10 rpm
}

void loop() {
Serial.println("Single coil steps");
myMotor->step(50, FORWARD, SINGLE);
myMotor->step(50, BACKWARD, SINGLE);
}

but the problem now is once i done upload it, my stepper motor doesn't move . basically it just vibrates there.
I used the usb to power supply my motor and also 4 AA batteries not at the same time.
If i power supply my motor using usb , the green light on my motor shield keeps blinking , and theres orange light lighted on my Arduino uno , i sensed there might have some problems.
So i change it to using 4 AA batteries to supply, but there another problem occurred. which is the motor is not moving at all even though there's no more orange light and the green light on the motor shield is lighted not blinking.