Write a story about a scientist who invents a machine that can teleport people, but discovers it has unintended consequences