'checkmate detection'