adding frame animation to the ball