bugs fixes with buildings and energy

fixed bug where you cannot build a generator when your used energy exceeds your max energy
fixed bug where buildings were not removing their used energy upon death
Merge remote-tracking branch 'origin/master'