public final int drawProbabilityMiddle(Board board, int totalEval) {
		int adjustedScore = totalEval;
		int fifty = board.movesFifty;

		// If the score says one side is winning but that side does not
		// have enough material to win (e.g. only a bishop) return draw
		if(adjustedScore > 0 && drawByMaterial(board,WHITE)) return 0;
		if(adjustedScore < 0 && drawByMaterial(board,BLACK)) return 0;
		
		// 50 moves rule
		// Starting at move 20 without pawn moves or captures the score
		// is adjusted with 1% towards 0 for every move, this way
		// it won't suddenly run into the 50 moves rule 
		if(fifty > 20) adjustedScore = (120-fifty)*adjustedScore/100;

		return adjustedScore;		
	} // END drawEnding()