Had a bug with multiple outstanding ()'s. Fixed it with a while loop when checking to get rid of outstanding ()'s.