Added grid size changing, sans UI parts