Moved initAI to be done when init is called