AI engine done. to be tested
Further additions to AI engine