Implement replay functionality, via -replay flag.

Good for debugging to quickly get a game to a certain point.