private boolean isStraight(ArrayList<Card> player) {
	ArrayList<Integer> sortedHand=sortHand(player);
	removeDuplicates(sortedHand);
	if (sortedHand.get(sortedHand.size()-1 ) == 14) //if the top value is an ace, use the method below
	    if (isLowestRankingStraight(sortedHand))
		return true;
	int straightCounter=0;
	for(int i=0;i<player.size()-4;i++) {
		if(sortedHand.get(i)==(sortedHand.get(i+1)-1) && 
		   sortedHand.get(i)==(sortedHand.get(i+2)-2) &&
		   sortedHand.get(i)==(sortedHand.get(i+3)-3) &&
		   sortedHand.get(i)==(sortedHand.get(i+4)-4))
		    {
			straightCounter=4;
		    }
	}
	return(straightCounter==4);
    }