public void GetAbility() { InputTypes firstPopInput; InputTypes secondPopInput; upgradesManager.GetPopularInputs(recentInputs, out firstPopInput, out secondPopInput); UpgradesInterface newAbility = upgradesManager.GetAbility(firstPopInput, currentUpgrades, availableUpgrades); availableUpgrades.Remove(newAbility); recentInputs.Clear(); if (newAbility != null) { currentUpgrades.Add(newAbility); DisplayUpgradeNotification(newAbility.upgradeImage); currentAbilityImages.Add(newAbility.upgradeImage); } else { return; } DisplayAbilities(); }