Changed some children sorting to get rid of indexOf, testing
Implemented new event system with observer pattern, needs a lot of work but so far so good