added functions to discover the longest chain of
neighbors jewels of the same type.