Fixed the issue with the inventory, hooked up energy persistence