Adding logical functionality for finding neighbour agent types.