area pattern fix, refactoring

- moved the check for what a valid control is to utils
- adjusted the patterns for the good/evil square count. the max was set
to 500, but there are some worlds in the world_gen file that exceed this
value. the new range is from 0-9999