Fixed bug in RunningColorDot.

Number of guaranteed steps without change of direction as off by one. The check to see whether a change may occur is now in the 'else' branch of the conditional 'are there guaranteed safe steps'. This also avoids performing random() operations when the outcome is not consequential.