moved AI code to the World, changed the loading indicator and did few clean ups