private boolean isThreeOfAKind(ArrayList<Card> player) {
	if(isFullHouse(player)){
	    return false;
	}
	
	ArrayList<Integer> sortedHand= sortHand(player);
	int tripleCounter=0;
	for(int i=0;i<player.size()-1;i++) {
		if(sortedHand.get(i)==sortedHand.get(i+1))
		    tripleCounter++;
		else {
		    if(tripleCounter==1)
			tripleCounter=0;
		}
	}
	if(tripleCounter==2)
	    return true;
	else
	    return false;		
    }