Fixed a syntax error for the tempDist variable.
Rover stops after rotating the total angle threshold.