fix secondDegreeInteraction function, which returned interactions that are not related to the pin feature
fix secondDegreeInteraction function, which returned interactions that are not related to the pin feature

aswarren/p3_api,maovt/p3_api,maovt/p3_api,maovt/p3_api,aswarren/p3_api,maovt/p3_api,maovt/p3_api,PATRIC3/p3_api,maovt/p3_api,PATRIC3/p3_api