public int totalCards(ArrayList<String> cards, int total, String who){
		total = 0;
		
		if (who.equalsIgnoreCase("player")){
			for (String card: cards){
				total += getCardValue(card, total);
				if (player.acesReduced == 0 && hasAce(cards) && total > 21){
					total -= 10;
					player.acesReduced++;
				}
			}
		}else {
			for (String card: cards){
				total += getCardValue(card, total);
				if (acesReduced == 0 && hasAce(cards) && total > 21){
					total -= 10;
					acesReduced++;
				}
			}
		}
		
		return total;
	}