add bad-neighbors solution.