added simple AI