Refactored Game.rb to reduce complexity