implement pokeAI