Energy system edited

Added the addition and depletion of energy on the warrior.