public void save(String fileName)
  {
    //todo write the array to a file
    java.io.PrintWriter writer; 
    try
    {
      writer = new java.io.PrintWriter(new java.io.FileWriter(fileName));
      writer.println(width+","+height);
      for (int y = 0; y < height; y++)
      {
        for (int x = 0; x < width; x++)
        {
          writer.println(/*x+","+y+":"+*/getTile(x,y).getImagePath()+":"+getTile(x,y).getTileType());
        }
      }
      writer.close();
    }
    catch (Exception e)
    {
    }
  }