code: private int updateList(Pathfindable mover,
                             int stx,
                             int sty,
                             int dtx,
                             int dty,
                             boolean ignoreRef,
                             Node current,
                             int maxDepth)
      {
          int depth = maxDepth;
          final Tile tile = map.getTile(current.getX(), current.getY());
          final TilePath tilePath = tile.getFeature(TilePath.class);
          for (int y = -1; y < 2; y++)
          {
              for (int x = -1; x < 2; x++)
              {
                  if (!(x == 0 && y == 0))
                  {
                      depth = check(tilePath, depth, x, y, mover, stx, sty, dtx, dty, ignoreRef, current, maxDepth);
                  }
              }
          }
          return depth;
      }
docs: Update the open and closed list to find the path.
  
  @param mover The entity that will be moving along the path.
  @param stx The x coordinate of the start location.
  @param sty The y coordinate of the start location.
  @param dtx The x coordinate of the destination location.
  @param dty The y coordinate of the destination location.
  @param ignoreRef The ignore map array reference checking (<code>true</code> to ignore references).
  @param current The current node.
  @param maxDepth The last max depth.
  @return The next max depth.