Began the FINAL version of the ai