buggy version of the simple ai