finished the AI