A simple Java Ping pong program