private boolean checkFor2Pair(List<Card> hand) 
	{
		List<Card> newHand = new ArrayList<Card>();

		boolean hasOnePair = false;
		for(int i = 0 ; i < hand.size()-1 ; i++) {
			if(hand.get(i).getValue() == hand.get(i+1).getValue())
			{
				newHand.add(hand.remove(i));
				newHand.add(hand.remove(i));
				hasOnePair = true;
				break;
			}
		}//check for one pair

		boolean hasTwoPair = false; 
		for(int i = 0 ; i < hand.size()-1 && hasOnePair ; i++)
		{
			if(hand.get(i).getValue() == hand.get(i+1).getValue())
			{
				newHand.add(hand.remove(i));
				newHand.add(hand.remove(i));
				hasTwoPair = true;
				break;
			}
		}//check for a second pair after the removal of the 1st one

		newHand.add(hand.get(hand.size()-1));//add a 5th card
		Collections.sort(newHand, new Card.CardComparator());//sort
		hand = newHand;
		return hasTwoPair;
	}