cleaned up picking system just a little bit and made it emit an event and update a global selected entity.