fixed game test, refactored game.rb