save
Save the replay.
Return
if the replay is saved successfully.
Parameters
dir
the dir which replay file will be stored.
name
the file name (without file extension)
id
the only id of the replay, used to find the right one when different replays have the same name.