Adds the random initial direction to the ball and sets the boundries of the canvas so no objects can leave the screen.