modified model/game.rb