Added in setRandomMaster function to the gameState