Pong implemented in Java