Added MasterAI to Ai funcion
Added number of cores