fixed the random selection of new preferred neighbors