implemented basics of pong game.