Added new function to AI class
Added number of cores