Moved world code into single file (ComponentPool will be mostly private)