private void addToBuildingMap(Building b, int x, int y)
 {
     int bldgmap_x = 0; int bldgmap_y = 0;
     int submap_x = x; int submap_y = y;
     for (; bldgmap_x < b.width; bldgmap_x++, submap_x++)
     {
         for (; bldgmap_y < b.height; bldgmap_y++, submap_y++)
         {
             if (b.getMap()[bldgmap_x, bldgmap_y]) { this.submap_buildingMap[submap_x, submap_y] = true; }
         }
     }
 }
 private bool verifyLocation(Building b, int x, int y)
 {
     int bldgmap_x = 0; int bldgmap_y = 0;
     int submap_x = x; int submap_y = y;
     for (; bldgmap_x < b.width; bldgmap_x++,submap_x++)
     {
         for (; bldgmap_y < b.height; bldgmap_y++,submap_y++)
         {
             if (b.getMap()[bldgmap_x, bldgmap_y] && this.submap_buildingMap[submap_x, submap_y]) { return false; }//if both have a true, then there is a collision and the building cannot be placed
         }
     }
     return true;
 }