What are the potential dangers of artificial intelligence and how can we mitigate them?