Edit bool chkBracketMatching(int nStage);
Adding getNstageInBrackets();