refractoring game.rb