Add a mask to NFO change function.

Allow masking NBHs that already have distance to a particular NFO equal to 0. In old version of code, an infinite loop could result.