Small Ping Pong game in JavaScript