starting to get AI working