No. In your code the brackets are missing. C uses brackets for keeping code together, not indenting like Python. And the exit commands are not needed here because opposite positions are automatically closed anyway. You need exit commands only when you exit a position without opening a new one. Your original code was ok, the new one is not.

And why have you still no NFA flag?