public class TileId
{
    public static final char WALL = '#';
    public static final char SPACE = ' ';
    public static final char PASSAGE = '.';
    public static final char PORTAL = '%';

    private TileId ()  // prevent instantiation!
    {
    }
}
@@ -186,16 +186,535 @@
 = '%25';%0A%0A
+    public static final int UP = 0;%0A    public static final int DOWN = 1;%0A    public static final int LEFT = 2;%0A    public static final int RIGHT = 3;%0A%0A    public static String position (int i)%0A    %7B%0A        switch (i)%0A        %7B%0A            case UP:%0A                return %22UP%22;%0A            case DOWN:%0A                return %22DOWN%22;%0A            case LEFT:%0A                return %22LEFT%22;%0A            case RIGHT:%0A                return %22RIGHT%22;%0A            default:%0A                return %22UNKNOWN%22;%0A        %7D%0A    %7D%0A    %0A
     priv

Update TileId.java