fixed isAdjacent; now passes non-path tests