Set up initial structure and grid sizes