New API for AI playing.