Modified proper_parenthetics to include more cases for when there are even number of parenthsis but not matching. There is still error when matching parenthesis dont come in order.