Finished part 1 of AI, made start on part 2.