Implement case when chess engine evaluates checkmate in x moves.