refactoring prs_game.rb