reworked game.rb