add check and checkmate