implemented basic ai; close #15