Move figuring out x_centers of blocks into a separate func