Checkmate, stalemate, check and promotion handling