added an out of bounds function for resetting the ball