Added support for muli-colored lands

1. Replaced old checks in density.py with new module, can_cast.py.
2. Made a shared module for utility functions.
3. Updated labeling of local modules to be consistent.