refactored the ball object and added some movement methods