This based on 'counting' up and down based on the tile name.
tile_neighbors(nm, tileset, iterate = 0, diagonal = FALSE)
Character string or factor: name of a tile, e.g.,
Admissible tile names; if missing and
internal - do not change default: to control behaviour in an interactive call to this function.