rewrite of the AI backend, support for multiple AI players