initial version of the AI opponent