Fix checkmate and user prompt behavior.