Issue with expecting }, found 'else'

I spent hours looking for the mistake that you pointed out right away. It worked. Thank you so much.