Added storeEnergy method and nextBattery