import java.util.*;
import java.io.*;

/*
 * Various utilities. Some are fairly simple.
 */

public class Util
{
    public static final int cost (HashMap<Coordinate, Integer> stepsToLocation, Coordinate start, Coordinate destination)
    {
        return stepsToLocation.get(start) + start.distanceTo(destination);
    }

    public static final Wormhole findWormhole (Vector<Wormhole> wormholes, String name)
    {
        Enumeration<Wormhole> iter = wormholes.elements();

        while (iter.hasMoreElements())
        {
            Wormhole hole = iter.nextElement();

            if (hole.getName().equals(name))
                return hole;
        }

        return null;
    }

    private Util ()
    {
    }
}
@@ -677,24 +677,371 @@
 ull;%0A    %7D%0A%0A
+    public static final Vector%3CCoordinate%3E extractCoordinates (Vector%3CWormhole%3E wormholes)%0A    %7B%0A        Vector%3CCoordinate%3E coords = new Vector%3CCoordinate%3E();%0A        Enumeration%3CWormhole%3E iter = wormholes.elements();%0A%0A        while (iter.hasMoreElements())%0A            coords.add(iter.nextElement().getLocation());%0A%0A        return coords;%0A    %7D%0A%0A
     private 

Update Util.java