private Object readResolve() throws ObjectStreamException
	{
		Map m = null;
		try
		{
			m = new Map(width, height);
		}
		catch (SpriteException e)
		{
			e.printStackTrace();
		}

		m.links = links;
		m.squares = squares;

		for (int i = 0; i < m.squares.length; i++)
		{
			for (int h = 0; h < m.squares[1].length; h++)
			{
				Square sq = m.squares[i][h];
				if (sq != null)
				{
					m.image.createGraphics().drawImage(sq.getImage(), h * 32,
					i * 32, (h + 1) * 32, (i + 1) * 32, 0, 0, 32, 32, null);
				}
			}
		}

		return m;
	}