Made AI (still has some TODOs)