It’s a good thing I’m not ever gonna work on this exact source code of the game, because this bug seem to be very hard to nail down. :D
I would make a game from scratch if I ever want to make a real game out of it. :D
The gamejam coding is at play here - only bad code, only fast decisions. :D