NHL President’s Trophy glitch

I got this email from Shaun:

Hey, I found a small error I thought you might want to be aware of.
The simulation somehow reported a case where Pittsburgh lost all 3 games in regulation but still won the President’s Trophy. This is of course impossible since they are 3 points back of Chicago.

I attached a picture for reference.

SCS pres trophy glitch
This is really interesting. Thank you Shaun. A bug in my code that is triggered so infrequently. What might cause that? Off to see…

While I’ve got you, twenty thousand fellow human beings visited Sports Club Stats yesterday (the most ever). Thanks.