get_neighbors now filters by grid neighbors