@gabe when posting your code select it and use the # icon. That way you get it in a box like everyone else code.
If you put your cursor in the editing window and click just after a brace or bracket the program will highlight the matching brace, if it doesn't then there is not one that matches it.