Introduced getEnergy method

I hope you don't mind this, but I need it for the SmartMonster class to work.