public class Grid
{
    public static final int DEFAULT_WIDTH = 5;
    public static final int DEFAULT_HEIGHT = 5;

    public Grid (String fileName)
    {
        this(DEFAULT_HEIGHT, DEFAULT_WIDTH, fileName);
    }

    public Grid (int height, int width, String fileName)
    {
        _height = height;
        _width = width;

    }

    private boolean loadWorld (String fileName)
    {
        boolean loaded = false;

        return loaded;
    }
    
    private Tile[][] _theWorld;
    private int _height;
    private int _width;
}
@@ -1,12 +1,51 @@
+import java.util.*;%0Aimport java.io.*;%0A%0A
 public class
@@ -387,116 +387,979 @@
 ate 
-boolean loadWorld (String fileName)%0A    %7B%0A        boolean loaded = false;%0A%0A        return loaded;
+void loadWorld (String inputFile)%0A    %7B%0A        BufferedReader reader = null;%0A        int row = 0;%0A%0A        _theWorld = new Tile%5B_height%5D%5B_width%5D;%0A%0A        try%0A        %7B%0A            reader = new BufferedReader(new FileReader(inputFile));%0A            String line = null;%0A%0A            while ((line = reader.readLine()) != null)%0A            %7B%0A                for (int i = 0; i %3C line.length(); i++)%0A                %7B%0A                    if (TileId.valid(line.charAt(i)))%0A                        _theWorld%5Brow%5D%5Bi%5D = new Tile(line.charAt(i));%0A                    else%0A                        System.out.println(%22Invalid world entry: %22+line.charAt(i));%0A                %7D%0A            %7D%0A%0A            row++;%0A        %7D%0A        catch (Throwable ex)%0A        %7B%0A            ex.printStackTrace();%0A        %7D%0A        finally%0A        %7B%0A            try%0A            %7B%0A                reader.close();%0A            %7D%0A            catch (Throwable ex)%0A            %7B%0A            %7D%0A        %7D
 %0A    %7D%0A
-    
 %0A   

Update Grid.java