Removed the final stat calculation from the loop

Break straight away when finishing the loop, and then print the stats. I think it is cleaner (easier to see the break an that is the end of the simulation) and possibly faster by reducing the code size of the loop (I'm not sure if this happens).