more conditions for ball movement