avoid infinite loops when stepping over a ball