Fix empty sequence ValueError

Fix an exception that is thrown from `adjacent_cell` when there are no cells in the requested direction