working on AStarEnergyCalculator