I've scanned through the program line by line several times now, and I can't find any open '(){}'. I
Well if you put your cursor just after the opening ( or { then the matching closing ) or } is outlined. If it is not then there isn't one and you need to add one in the appropriate place.
Have you some sort of aversion to posting your code?
(I'm sorry, I can't post my code)
Why?