implemented the simpleAI class