My code places a container next to my initial spawn, and then flowers out based on that. It creates a grid of center locations of these flowers, checks to make sure the center locations aren't too close to my walls, and then picks the closest one to the center and builds away. The storage and labs I set a flag in the room and it builds off a template from the flag.