public int handValue() {
		handValue = 0;
		for (int i=0; i<currentCardAmount; i++) {
			if (hand[i].getNumber() >= 2 && hand[i].getNumber() <= 10) {
				handValue += hand[i].getNumber();
			} else if (hand[i].getNumber() >= 11 && hand[i].getNumber() <= 13) {
				handValue += 10; 
			} else {
				handValue += 11;
			}
		}

		//finds the amount of aces in hand
		int acesAmount = 0;
		for (int a=0; a<currentCardAmount; a++) {
			if (hand[a].getNumber() == 1) {
				acesAmount++;
			}
		}

		//takes away handValue
		for (int b=0; b<acesAmount; b++) {
			if (handValue > 21) {
				handValue = handValue - 10;
			}
		}
		return handValue;
	}