public bool CanSurrender() { // surrender only available on the first two cards // and when no other action has been yet made if (player_handset.HandCount == 1 && !player_handset.ActiveHand.Acted) return true; return false; }