It means you still have errors in your brackets - how can I say it any simpler?
What is the line number that is the end of your setup() code - it is certainly not line 187. The compiler, however, thinks that your setup() code goes all the way to line 187 because there is something wrong with your brackets.
Go through your code line by line and every time you find an opening bracket check to see there is a matching closing bracket in the correct place. And when you find a closing bracket check that its opening bracket is in the right place.
Tedious, but simple, and essential.
...R