Hello!
You have one { too much.
You can auto format with ctrl-t
Then check please : the last } in draw() e.g. must be very left side of editor without any indent.
Now search a } that has an indent where shouldn't be any. The { must be before this.
Anyway maybe just go to the very last line and insert } could work or be very wrong
Or post your code here