vex button code

can someone help me with my code i cant seem to find why it wont work.

Incorrectly paired brackets…

More specifically, look at the errors listed at the bottom and the X marks. The first two opening brackets don’t have corresponding closing brackets. As a result of this, the file ends before those loops are done. Add two closing brackets to the end and it will work.