more clean code for clear_ball and chase_ball