Artificial Intelligence and the Threat to Humanity