"Finished" AI (Ha!) /cleaned the animation code