update ping pong in java