getFreeNeighbors fixed