Added ability to change grid size from settings