Pong game in Java