fix 6c591f6e91b171b363fcfe063b7305a29352cf7f

in 6c591f6e91b171b363fcfe063b7305a29352cf7f i accidentally placed a
bracket in the wrong line
stop replay when we have reached the end.

the old code used to execute one last [end_turn] after the end of the
replay was reached, This doesn't work because the wml might require
[message][option] or similar during "turn end" events and we don't have
the data for that.