Implemented checkmate dialog