private void GetNewCard() { int randomNumber = Rng.Next(3); if (randomNumber == 0) { if (!isInclusingPilots && (isInclusingUpgrades || isInclusingManeuvers)) { GetNewCard(); return; } currentRandomCard = Pilots.GetRandomPilot(); isShowingManeuverCard = false; } else if (randomNumber == 1) { if (!isInclusingManeuvers && (isInclusingPilots || isInclusingUpgrades)) { GetNewCard(); return; } currentRandomShip = Ships.GetRandomShip(); isShowingManeuverCard = true; } else { if (!isInclusingUpgrades && (isInclusingPilots || isInclusingManeuvers)) { GetNewCard(); return; } currentRandomCard = Upgrades.GetRandomUpgrade(); isShowingManeuverCard = false; } }