import java.util.*;

public class Maze
{
    public Maze ()
    {
        _map = new Vector<Tile>();
        _maxX = 0;
        _minX = 0;
        _maxY = 0;
        _minY = 0;
    }

    public final void addContent (Coordinate coord, String type)
    {
        // don't add if already present

        if (!_map.contains(coord))
            _map.add(new Tile(coord, type));
    }

    public final boolean visited (Coordinate coord)
    {
        return _map.contains(coord);
    }

    @Override
    public String toString ()
    {
        String str = "";

        for (int y = _minY; y < _maxY; y++)
        {
            for (int x = _minX; x < _maxX; x++)
            {
                Tile theTile = new Tile(new Coordinate(x, y));
                int index = _map.indexOf(theTile);

                if (index != -1)
                {
                    theTile = _map.get(index);
                    str += theTile.content();
                }
                else
                    str += TileId.UNEXPLORED;
            }

            str += "\n";
        }

        return str;
    }

    private Vector<Tile> _map;
    private int _maxX;
    private int _minX;
    private int _maxY;
    private int _minY;
}
@@ -550,16 +550,26 @@
  str = %22
+--------%5Cn
 %22;%0A%0A    
@@ -1067,32 +1067,70 @@
 %5Cn%22;%0A        %7D%0A%0A
+        str += %22--------%5Cn%22;%0A        %0A
         return s

Update Maze.java