re-coding the AI to be world based