refactored the initial extraction code
clean up game.rb