progressing in correct energy implementation for metropolis