def adjust_for_ace(self):
    while ((self.value > 21) and self.aces):
        self.value -= 10
        self.aces -= 1
def adjust_for_ace(self):
    while ((self.value > 21) and self.aces):
        self.value -= 10
        self.aces -= 1