Write a story about a scientist who accidentally invents a time machine and travels to a dystopian future where society is controlled by artificial intelligence