Does this code get run once for each minute of interest, or only once for the whole replay?  It seems like you intended to run it once per minute but then switched it to once for the whole replay without updating the logic here.  As written, the result seems to depend on which player is processed first, which cannot be what you intended.