Loading objects from TMX, Energy bar bug fix