Move totalEnergy into gameParams hashmap