implemented heuristic non neighbors