Fixed the minimum/maximum score calculation
The variables are no longer initialized upon declaration. Instead a check
is made to see if they are defined, and if not, they are simply assigned
the first score that is encountered. This fixes the issue:
"I'm not sure the way you calculate $minScore is safe. there could be
no score below 100, which would result in the wrong minScore value."