Added mate distance pruning.