public void BuySugarCubes() { int amount = Userinterface.PurchasingSugarCubes(); if (player.wallet.moneyInWallet >= priceOfSugarCubes) { Console.WriteLine("success in buying SugarCubes"); } else { Console.WriteLine("You need more money"); } for (int i = 0; i <= amount; i++) { player.inventory.sugarCubes.Add(new SugarCube()); } player.wallet.moneyInWallet -= amount; Menu(); }