/*
 * 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.
 */

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

    public Portal (Coordinate position, char portalId)
    {
        super(position, TileId.PORTAL);

        _portalId = portalId;
        _portalName = "*"+portalId+"*";  // a default name initially.
    }

    public final char getId ()
    {
        return _portalId;
    }

    public final String getName ()
    {
        return _portalName;
    }

    @Override
    public boolean equals (Object obj)
    {
        System.out.println("Portal comparing");

        if (obj == null)
            return false;

        if (this == obj)
            return true;
        
        // only check location not content

        if (getClass() == obj.getClass())
        {
            Portal temp = (Portal) obj;

            System.out.println("Portal comparing "+_position+" and "+temp._position);

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

        return false;
    }
    
    private char _portalId;
    private String _portalName;
}

@@ -855,580 +855,8 @@
    %7D
-%0A%0A    @Override%0A    public boolean equals (Object obj)%0A    %7B%0A        System.out.println(%22Portal comparing%22);%0A%0A        if (obj == null)%0A            return false;%0A%0A        if (this == obj)%0A            return true;%0A        %0A        // only check location not content%0A%0A        if (getClass() == obj.getClass())%0A        %7B%0A            Portal temp = (Portal) obj;%0A%0A            System.out.println(%22Portal comparing %22+_position+%22 and %22+temp._position);%0A%0A            return _position.equals(temp._position);  // only compare position not type.%0A        %7D%0A%0A        return false;%0A    %7D
 %0A   

Update Portal.java