Update replay.cpp