Java implementation of a clock that looks like a game of pong