It really helped

The code is more fair now
And also i realize that the error was about a single }
that was bad placed

I need to be more careful