Refactored GenerateGamePage.rb