I want to completely redo this soon, and noticed the same thing. Ill fix the energy piece in the meantime.
Ok, just tweaked the code, for the next push it wont let you get into the negative. Thanks for pointing this out!