public void CheckForDealerShowingAce(List <Card> dealerCards, ref bool boughtInsurance, Hand playerHand, Hand dealerHand, double betAmount, ref double walletAmount) { if (dealerCards[1].face == Face.Ace) { boughtInsurance = playerHand.Insurance(); if (boughtInsurance == true) { walletAmount -= betAmount; if (dealerHand.Points(dealerCards) == 21) { walletAmount += betAmount * 2; } } } }