public Integer getTotal()
	{
		Integer ret = 0;
		Integer aces = 0;

		soft = false;
		
		for ( Card card : cards ) {
			if ( card.getOrientation() == CardOrientation.FACE_UP ) {
				Integer val = card.getValue();
				ret += val;
				if ( val == 1 ) {
					aces += 1;
					ret += 10;
				}
				if ( ret > 21 && aces > 0 ) {
					aces -= 1;
					ret -= 10;
				}
			}
		}
		if ( aces > 0 ) soft = true;
		return ret;
	}