Update the game loop with some position constraints. Add invert methods to Ball.