Thanks guys. However, the problem was elsewhere. This was a problem with one of the flags that are checked during renewal. It should get reset when the user starts a new game, which I could not do.
Lesson learned: be careful with global variables :) [I try to avoid them as much as possible)
I appreciate your answers and your answers. Thanks again.
source share