Changed game loop, added checking of win, added abbility to see the history of the game.