public static boolean threeOfaKind(Hand hand) {
		hand.sortByValue();
		if(
				(hand.getCard(0).getValue() == hand.getCard(1).getValue()) && 
				(hand.getCard(0).getValue() == hand.getCard(2).getValue()) ||
				
				(hand.getCard(1).getValue() == hand.getCard(2).getValue()) && 
				(hand.getCard(1).getValue() == hand.getCard(3).getValue()) ||
				
				(hand.getCard(2).getValue() == hand.getCard(3).getValue()) && 
				(hand.getCard(2).getValue() == hand.getCard(4).getValue())
				) {
			return true;
		} else {
			return false;
		}
	}