finish game.rb and produce history.txt