add checkmate check