Added logic to fill out building objects to mapgrid.