Problem with project 09 of Arduino Beginner Kit

Hello, I'm having some issues with the project 09 of Arduino UNO guide. I copied the code, and it seems that the connections are OK, but still the motor runs forever and the switch doesn't seem to work. I've changed the diodes and the transistor, but there's still this issue. Could you please help me? Thanks.

Here's the code (I've added a serial to check if the switch worked and it does):

const int switchPin = 2; // the number of the switch pin
const int motorPin = 9; // the number of the motor pin

int switchState = 0; // variable for reading the switch's status

void setup() {
// initialize the motor pin as an output:
pinMode(motorPin, OUTPUT);
// initialize the switch pin as an input:
pinMode(switchPin, INPUT);
Serial.begin(9600);
}

void loop(){
// read the state of the switch value:
switchState = digitalRead(switchPin);

// check if the switch is pressed.
if (switchState == HIGH) {
// turn motor on:
digitalWrite(motorPin, HIGH);
}
else {
// turn motor off:
digitalWrite(motorPin, LOW);
}
Serial.print(digitalRead(motorPin)); //The thing I added
}

20271765_10214398157290714_1002072934_n.jpg

There is a section of the forum specifically for issues with the starter kit, and in there is a topic about exactly the issue you are having:

http://forum.arduino.cc/index.php?topic=169141.0