In the getRandomCard() method, there are calls to variables outside of the scope of this function that are not available within GameState