implement auto camera positioning for grid size