/*
 * A Portal is two letters but as we scan in the information about
 * the Donut and Portals we only get to read one letter at a time.
 * 
 * Assume there are always 3 spaces around the first letter in the Portal
 * name. Assume there are always 2 spaces around the second letter, then
 * the first letter and a passage which represents the real location of the
 * Portal.
 */

 /*
  * When printing, leep a reference to each latter of the Portal for each
  * coordinate. In fact the Portal print method should take this coordinate
  * and print our accordingly.
  */

public class Portal extends Tile
{
    public static final String START = "AA";
    public static final String EXIT = "ZZ";

    public Portal (Coordinate first, Coordinate second, String name)
    {
        super(first, TileId.PORTAL);

        _secondPosition = second;
        _portalName = name;
    }

    public final String getFullName ()
    {
        return _portalName;
    }

    public final char getName (Coordinate coord)
    {
        if (_position.equals(coord))
            return _portalName.charAt(0);
        else
            return _portalName.charAt(1);
    }

    @Override
    public boolean equals (Object obj)
    {
        if (obj == null)
            return false;

        if (this == obj)
            return true;

        if ((getClass() == obj.getClass()) || (super.getClass() == obj.getClass()))
        {
            Tile temp = (Tile) obj;

            return _position.equals(temp._position);  // only compare position not type.
        }

        return false;
    }
    
    private Coordinate _secondPosition;
    private String _portalName;
}

@@ -744,16 +744,30 @@
  second,
+ Tile passage,
  String 
@@ -850,16 +850,44 @@
 second;%0A
+        _passage = passage;%0A
         
@@ -1655,16 +1655,43 @@
 sition;%0A
+    private Tile _passage;%0A
     priv

Update Portal.java