{
int numNodes = 0;
World world = null;
WaypointMap wpMap = new WaypointMap();
DM2Parser dm2p = new DM2Parser(dm2File);
Vector isAlive = new Vector();
Vector playerPos = new Vector();
Vector waypointItems = new Vector();
Vector pickupPos = new Vector();
Vector3f currentPos = null, lastPos = null, itemPos = null;
while((world = dm2p.getNextWorld()) != null)
{
currentPos = new Vector3f(world.getPlayer().getPlayerMove().getOrigin());
if(lastPos == null || !currentPos.equals(lastPos))
{