basic Metropolis working
Metropolis working for energy