Created the bounding boxes to keep the ball inside the view