added simple ai