Finished the AI