This is a standard mentalism confabulation routine which has been used in magic shows being typically called the "show in review." There are so many different ways to do this using forces, Jedi mind tricks, switches, magic gnomes, writers, multiple outs, one-ahead, small assistants hidden in...