refactored grid sizes, globals, and split apart modules