Code for making the classic Ping Pong game in html5