Optimised render and ai gathering through own octtree implementation.
Removed expensive iterator creating enhanced for loops.