Figures out if the braces match properly.