Wii Nunchuck controlled robot

Hi!
I’m working on a robot that should take information from a wii nunchuck wireless and then drive three motors. I’m using motor shield to controll the motors and a reciever for the wii nunchuck. But it will not work.
I have connected the red wire, think it’s VCC, to 5V on arduino, and I have connected the black wire, think it’s GND, to GND on arduino. I have also connected the green wire to analog pin 2 and the blue wire to analog pin 3. I have left the white wire out.
I can see that the wii nunchuck and the recierver has connection. There is not a problem with that.
I’m using coopermaas wiichuck library. In the how to use text there is a small text about the wire connections:

Wiichuck chuck;

Initialize the controller by specifying what pins you’ve connected VCC and GND to. Default with be analog pins 2 and 3. Specify 0 if you’ve connected the controller to VCC and GND instead of output pins.

chuck.init(); chuck.init(12, 13); chuck.init(0, 0);

If I understood this right it says that I will connect the red wire to analog pin 2 and the black wire to analog pin 3. When I’m doing that the receiver doesn’t get current.

Here is my code if something is wrong with that:

#include <Wiichuck.h>
#include <Wire.h>
#include <Servo.h> 
#include <AFMotor.h>
Wiichuck wii;
Servo vertServo;
const int vertServoPin = 1; //vertServo to pin 1
AF_DCMotor motor1(3, MOTOR12_64KHZ); //motor1 is connected to M1 port
AF_DCMotor motor2(4, MOTOR12_64KHZ); //motor2 is connected to M2 port
AF_DCMotor motor3(1, MOTOR34_64KHZ); //motor3 is connected to M3 port
void setup() {
  Serial.begin(9600); //data speed
  vertServo.attach(vertServoPin);
  
  wii.init();  
  wii.calibrate();  //calibration
}

void loop() {
  if (wii.poll()) {
    int joyX = wii.joyX();
    int joyY = wii.joyY();
    int buttonC = wii.buttonC();
    
    if (joyX == 127.5 && joyY == 127.5) { //when the joystick is in the middle(not pushing in any direction)
      motor1.run(RELEASE);
      motor2.run(RELEASE);
      motor3.run(RELEASE);//no motors should run
    } 
    
    if (joyX > 127.5 && joyX < 191.5) { //when the joystick is pushed half-right
       motor1.setSpeed(192);//the motors speed (192 of 255)
       motor2.setSpeed(192);
       motor1.run(FORWARD);
       motor2.run(FORWARD);
       motor3.run(RELEASE);//spin right
    }
    if (joyX >= 191.5 && joyX <= 255) { //when the joystick is pushed right
        motor1.setSpeed(255);//the motors speed (255 of 255)
        motor2.setSpeed(255);
        motor1.run(FORWARD);
        motor2.run(FORWARD);
        motor3.run(RELEASE);//spin right fast
    }
    if (joyX < 127.5 && joyX > 64) { //when the joystick is pushed half-left
        motor1.setSpeed(192);
        motor3.setSpeed(192);
        motor1.run(FORWARD);
        motor2.run(RELEASE);
        motor3.run(FORWARD);//spin right
    }
    if (joyX <=0 && joyX <=64) { //when the joystick is pushed left
        motor1.setSpeed(255);
        motor3.setSpeed(255);
        motor1.run(FORWARD);
        motor2.run(RELEASE);
        motor3.run(FORWARD);//spin left fast
    }
        
    if (joyY > 127.5 && joyY < 191.5) { //when the joystick is pushed half-forward
        motor1.setSpeed(192);
        motor2.setSpeed(192);
        motor3.setSpeed(192);
        motor1.run(FORWARD);
        motor2.run(FORWARD);
        motor3.run(FORWARD);//go forward
    }
     if (joyY >= 191.5 && joyY <= 255){ //when the joystick is pushed forward
        motor1.setSpeed(255);
        motor2.setSpeed(255);
        motor3.setSpeed(255);
        motor1.run(FORWARD);
        motor2.run(FORWARD);
        motor3.run(FORWARD);//go forward fast
     }
     if (joyY < 127.5  && joyY > 64){ //when the joystick is pushed half-backward
        motor1.setSpeed(192);
        motor2.setSpeed(192);
        motor3.setSpeed(192);
        motor1.run(BACKWARD);
        motor2.run(BACKWARD);
        motor3.run(BACKWARD);//go backward
     }
     if (joyY <= 64 && joyY >= 0){ //when the joystick is pushed backward
        motor1.setSpeed(255);
        motor2.setSpeed(255);
        motor3.setSpeed(255);
        motor1.run(BACKWARD);
        motor2.run(BACKWARD);
        motor3.run(BACKWARD);//go backward fast
     }
     if (buttonC = HIGH); { //when button C is pressed
        vertServo.write(20);//a servo turns 20 degrees
        delay(1500);//wait 1,5 seconds
        vertServo.write(20);//servo turns back 20 degrees
        delay(100);//wait for things to stabileze
     }
    }
  }