fix parens validation if they match

fixed nested paren symbol method to ensure they match the equivalent open symbol. also added a few comments to help for readability.
If the open and closed symbols are in the same order, do you have to loop twice? what about return closed == CLOSED_SYMBOL(openPos) to avoid the second loop?