Project 09 (Motorized Pinwheel) problem - motor spins forever

Hi,

I just experienced this same problem. One thing I noticed was that when I added power to the circuit, the transistor started to burn and I smelled a strong burning smell from it. I unplugged the power but I don't know where the problem is. The switch also doesn't mean anything, the motor just constantly spins no matter what.

Edit:
I got it to work! The problem was actually really simple but I plugged the battery in and the nplugged in the usb, but I forgot to upload the sketch to my board. Once I uploaded the sketch to the board, it worked.