Moved initializeWorld method.