Refactor game.rb