Added simple eventing system for rendering.
Added BFS for debugging animations.