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