first working version of AI