The 'wait(1)' is outside of the while loop in the 'movr_with_ball' function.