public static int assessHand(Hand hand){
	   Hand testHand = new Hand();
	   testHand.add(hand.get(0));
	   for(int k = 1; k < hand.size(); k++){
		   testHand.add(hand.get(k));
		   for(int i = k; i-1 >= 0 ;i--){
			   if (testHand.get(i).getValue() < testHand.get(i-1).getValue()){
				   Card card1 = testHand.get(i);
				   Card card2 = testHand.get(i-1);
				   testHand.setElementAt(card2, i);
				   testHand.setElementAt(card1, i-1);
			   }
		   }
	   }
   
	      
    if (isThereAFour(testHand)) return 6;
    if (isThereAFlush(testHand)) return 5;
    if (isThereAStraight(testHand)) return 4;
    if (isThereAThree(testHand)) return 3;
    if (isThereTwoPair(testHand)) return 2;
    if (isThereAPair(testHand)) return 1;

    return 0;
    
 }