Removed unused function rotate.
Added new param to store the angle of the tank.
Renamed some variables so the name shows what they really do.
Added new param - clockwise - it shows the direction that the tank should rotate.