WIP on collision detection and event emitter.