write a working game.rb