public int getValue(){
    	int value = 0, count = getCards_count();
    	boolean isAce = false;
    	
    	cards cards;
    	int cards_value;
    	
    	for(int i = 0; i<count; i++){
    		cards = getCards(i);
    		cards_value = cards.getValue();
    		
    		if(cards_value > 10){ cards_value = 10;}
    		if(cards_value == 1){ isAce = true;}
    		
    		value += cards_value;
    	}
    	
    	if(isAce && (value + 10 <= 21)){
    		value += value + 10;
    	}
    	
    	return value;
    }