an improved version of the AI opponent