while(currPathNode.parent != null){
for(WireConnection w1 : currPathNode.parent.tile.getWireConnections(currPathNode.parent.wire)){
if(w1.getWire() == currPathNode.wire){
if(w1.isPIP() && currPathNode.parent.tile.equals(currPathNode.tile)){
pipList.add(new PIP(currPathNode.tile, currPathNode.parent.wire, currPathNode.wire));
break;
}
}
}
// Update the current node to the parent