added auto ai mode