public boolean doubleUp(int upcard, int total, boolean soft) {
		if (upcard == 1) return false;
		if (soft) {
			return upcard <= 6  &&  total <= 18  &&  total + 2*upcard >= 23;
		} else {
			return total <= 11  &&  total >= 9  &&  upcard != 10  &&
			(total != 9  ||  upcard >= 7);
		}
	}