public class Image
{
    /*
     * 144 tiles in the example. Hard wire
     * this for now but could make it dynamic.
     */

    public static final int MAX_X = 12;
    public static final int MAX_Y = 12;

    public static final String NO_TILE = "xxxxxxxx";

    public Image (boolean debug)
    {
        this(MAX_Y, MAX_X, debug);
    }

    public Image (int y, int x, boolean debug)
    {
        _theWorld = new Tile[y][x];

        for (int i = 0; i < y; i++)
        {
            for (int j = 0; j < x; j++)
            {
                _theWorld[i][j] = null;
            }
        }

        _debug = debug;
    }

    public void addTile (int x, int y, Tile t)
    {
        _theWorld[y][x] = t.removeBorders();

        System.out.println("Added "+t.removeBorders()+" to "+x+" "+y);
    }

    @Override
    public String toString ()
    {
        String str = "";
        
        int index = 0;
        int maxIndex = 0;

        do
        {
            for (int i = 0; i < _theWorld.length; i++)
            {
                for (int j = 0; j < _theWorld[0].length; j++)
                {
                    Tile t = _theWorld[i][j];

                    if (t != null)
                    {
                        str += t.line(index);

                        maxIndex = t.numberOfLines();
                    }
                    else
                        str += NO_TILE;
                }

                str += "\n";
            }

            index++;

        } while (index < maxIndex);

        return str;
    }

    private Tile[][] _theWorld;
    private boolean _debug;
}
@@ -1015,32 +1015,114 @@
 )%0A            %7B%0A
+                System.out.println(%22size %22+_theWorld%5B0%5D.length);%0A                %0A
                 
@@ -1317,27 +1317,245 @@
     
-str += t.line(index
+System.out.println(%22Tile %22+t.getID()+%22 line %22+index+%22 is %22+t.line(index));%0A                        System.out.println(%22So far%5Cn%22+str);%0A%0A                        str += t.line(index);%0A%0A                        System.out.println(%22Now%5Cn%22+str
 );%0A%0A

Update Image.java