Adding total number of moves and total duration to output file