Started implemented the framework for a basic AI algorithm for plotgen