public int getHandValue()
    {
        int total = 0;
        int aces = 0;
        for (Card c : cards)
        {
            if (c.getValue().getValue() == 11)
            {
                aces++;
            }
            else
            {
            total += c.getValue().getValue();
            }
        }
        for (int i = 0; i < aces; i++)
            {
                if (total + 11 <= 21)
                {
                    total += 11;
                }
                else
                {
                    total +=1;
                }
            }
        return total;
    }