You have to save the variable AFTER you do HowFar=HowFar+1.