Change program to evaluate avg and stddev after choosing a neighbor in the 4th iteration