Made the energybar work

We will make it work with numbers first.