public boolean hit(int upcard, int total, boolean soft) {
		if (soft) {
			return total < 18  ||  (total == 18  &&  (upcard >= 9  ||  upcard == 1));
		} else {
			if (total < 12) return true;
			if (upcard > 6  ||  upcard == 1) return total <= 16;
			if (total > 12) return false;
			return upcard <= 3;
		}
	}