variable changing unexpectedly in program, except if adding a Serial.println()

men, correct! And this is indeed resolving the issue.

But tell me, how come this is causing the described issue?
I can understand this the 25th count is causing issues with the memory, but how come adding or removing the Serial.print line is resulting in differente behavior?