add some basic ai code
merge master