From Science Fiction to Reality: The Evolution of Artificial Intelligence