added very simple AI