fix problem checkmate success detection