Fixed Parentheses Parsing

I changed the method of parsing parenthesis with functions. It is now
much more efficient, and it now works in EVERY situation.