Added planning logic: delete RuleNode, del its main branch recursively, judge which branches are not in its main branch..