Added object oriented version of the game.