//Checks if the current Balance is greater than the wanted amount public bool BalanceCheck(Card card, double wantedAmount) { bool balancebool; ATM atm = new ATM(); AccountMessages accountMessages = new AccountMessages(); if (wantedAmount <= card.Balance) { Withdrawal(card, wantedAmount); accountMessages.BalanceCheck(card); return(true); } else { accountMessages.AccountInsuffiant(); atm.FrontScreen(card); return(false); } }