Prevents Paddles from leaving screen in Pong example.