public TileMap(TileMap copy)
 {
     CopyMap(copy);
 }
 public void CopyMap(TileMap copy)
 {
     ResizeMap(copy.MapSizeX, copy.MapSizeY);
     this.tileSet = copy.tileSet;
     for(int i = 0; i < 3; i++)
     {
         for(int x = 0; x < MapSizeX; x++)
         {
             for(int y = 0; y < MapSizeY; y++)
             {
                 this[i][x][y] = copy[i][x][y];
             }
         }
     }
     drawMap = copy.drawMap;
     drawDetail = copy.drawDetail;
     drawOverlay = copy.drawOverlay;
     xOffset = copy.xOffset;
     yOffset = copy.yOffset;
 }