How Does Artificial Intelligence Work?