implemented flipping when hit paddles