handle ball movement