public class Verifier
{
    public static final String EXAMPLE = "example.txt";
    public static final int EXAMPLE_STEPS = 396;

    public Verifier (boolean debug)
    {
        _debug = debug;
    }

    public boolean verify ()
    {
        Maze theMaze = new Maze(EXAMPLE_1, _debug);
        Traveller theTraveller = new Traveller(theMaze, _debug);

        if (_debug)
        {
            System.out.println(theMaze);

            System.out.println(theMaze.printWithPortals());
        }

        int numberOfSteps = theTraveller.findAllKeys();

        if (numberOfSteps == EXAMPLE_1_STEPS)
        {
            theMaze = new Maze(EXAMPLE_2, _debug);
            theTraveller = new Traveller(theMaze, _debug);

            if (_debug)
            {
                System.out.println(theMaze);

                System.out.println(theMaze.printWithPortals());
            }
    
            numberOfSteps = theTraveller.findAllKeys();
    
            if (numberOfSteps == EXAMPLE_2_STEPS)
                return true;
            else
                System.out.println("Failed to verify "+EXAMPLE_2);
        }
        else
            System.out.println("Failed to verify "+EXAMPLE_1);

        return false;
    }

    private boolean _debug;
}
@@ -270,18 +270,16 @@
 (EXAMPLE
-_1
 , _debug
@@ -273,32 +273,32 @@
 AMPLE, _debug);%0A
+
         Travelle
@@ -588,10 +588,8 @@
 PLE_
-1_
 STEP
@@ -591,38 +591,32 @@
 _STEPS)%0A    
-    %7B%0A
         
     theMaze 
@@ -607,585 +607,84 @@
     
-    theMaze = new Maze(EXAMPLE_2, _debug);%0A            theTraveller = new Traveller(theMaze, _debug);%0A%0A            if (_debug)%0A            %7B%0A                System.out.println(theMaze);%0A%0A                System.out.println(theMaze.printWithPortals());%0A            %7D%0A    %0A            numberOfSteps = theTraveller.findAllKeys();%0A    %0A            if (numberOfSteps == EXAMPLE_2_STEPS)%0A                return true;%0A            else%0A                System.out.println(%22Failed to verify %22+EXAMPLE_2);%0A        %7D%0A        else%0A            System.out.println(%22Failed to verify %22+EXAMPLE_1
+return true;%0A        %0A        System.out.println(%22Failed to verify %22+EXAMPLE
 );%0A%0A

Update Verifier.java