Motor won't run with code

So this is the code I am uploading to the board

//A 12/9-so far just copied DC motor test in
#include <Wire.h>
#include <Adafruit_MotorShield.h>
#include "utility/Adafruit_MS_PWMServoDriver.h"

// Create the motor shield object with the default I2C address
Adafruit_MotorShield AFMS = Adafruit_MotorShield(); 

// Select which 'port' M1, M2, M3 or M4. In this case, M1
Adafruit_DCMotor *myMotor = AFMS.getMotor(1);

void setup() {
  Serial.begin(9600);           // set up Serial library at 9600 bps


  AFMS.begin();  // create with the default frequency 1.6KHz
  //AFMS.begin(1000);  
  
  // Set the speed to start, from 0 (off) to 255 (max speed)
  myMotor->setSpeed(150);
  myMotor->run(FORWARD);
  // turn on motor
  myMotor->run(RELEASE);
}

void loop() {
  uint8_t i;
  

  myMotor->run(FORWARD);
 
  delay(5000);
  
  myMotor->run(RELEASE);
  delay(3000);
}

I am using Adafruit's V2 motor shield and I ran the DC motor script with out problems so I know that the libraries are being referenced correctly. Also the code uploads, just the motor doesn't run.

(deleted)

this is the wiring. Like I said, the test sketch went up alright, and the motor did what it needed to do, so I think the hardware is ok.