Write a short story about a scientist who invents a machine that can predict the future, but comes to regret using it