Hierarchy updates

The method of loading entities has been changed, and makes it easier to
load a certain type of entity. The only downside is there is a stack
overflow that is crashing the game, and I have not found the issue yet.