Ping Pong paddle game in javascript