started on ai stuff; combined state & machine; removed some files im done with