so I found a glitch in your code basically you need to stop the years from passing after you win so you don't get both endings
Sorry about that! Simple oversight, thank you so much for playing!! x