fixed energy updating with swendsen wang