Refactored hardcode to config for grid size