wrote a simulated annealing initializer function...makes cleaner code.