public void CheckSufficientFunds(Player player) { sufficientFunds = player.wallet.CheckMoney(totalCostOfPurchase); if (sufficientFunds) { UI.CheckAmountToBuy(item, amountToPurchase); string yesNo = Console.ReadLine(); if (yesNo == "yes") { CheckOutAtRegister(player); } else { UI.DisplayDidNotPurchase(); } } else if (!sufficientFunds) { UI.DisplayInsufficientFunds(); UI.DisplayDidNotPurchase(); } }