Fixed the function for the rotating - now the tank can be rotated around it's own axis by a function, not according to the user inputs.
Fixed some of the formating of the code.
Fixed the rotate function to rotate the tank 360 degrees.
Removed some unused code.