After a bunch of resets without ever passing nr 5 I exited the app. But then I changed my mind, restarted the app but clicked too fast and the app ran in the background. Immediatly I had a winner. I then started to test a few running conditions for the app. Here are my results:
(1) Starting the app
No winner after many tries. It always fails at 5
(2) Starting the app, set the windows focus to another thread, but don't cover the app's window
The rate of winners raises strongly. Fails are either at 3 or at 5
(3) Starting the app, set the windows focus to another thread, and cover the app's window
(4) Starting the app, set the windows focus to another thread, and cover the app's window, but randomly force the app to draw again by moving the covering window away
Highest rate of winners. Almost always it works. The rare times it fails, it is at either 3 or 5
I don't know what to think about this. It is strange.