Haha, there's no bug here. This game was made in the last few hours of the jam (without an engine) so the code is all spaghetti, leading to this outcome.
There's a ton of stuff at play here, and if you're interested I could explain it all, but for now we can just say you were so good at the game you broke it (my high score is in the 80s lol).