Need to power small dc motor car for specific distance and stop

I hadn't noticed the power mod before the last post.
We are testing the setup with a 9V battery power source to the Arduino.
And all power sources connected as shown.
The transistor has not been hot at all. Could a bad transistor cause the problem we are seeing?