private int sumValue(ArrayList<Piece> thePieces) {
		int answer=0;
		for(Piece p : thePieces)
		{
			if(p instanceof Pawn)
			{
				answer+=1;
			}else if(p instanceof Knight|| p instanceof Bishop)
			{
				answer+=3;
			}else if(p instanceof Rook)
			{
				answer+=5;
			}else if(p instanceof Queen)
			{
				answer+=9;
			}
		}
		return answer;
	}