Better if you explain what's wrong about it, and then others can help you identify what causes that behaviour
Right now it's difficult to tell what to look for.
If I run your code, I get:
NameError: global name 'score' is not defined
I'm guessing that's not what your problem is, so should I now have to add that myself? Not quite the thing you want me to spend my efforts on, let me get straight to what you want to know by making it super easy to reproduce the problem and understand what you want to be different about it - less work for me, and you get other people's efforts directed where you need them.
Gotta show that you value people's time, and to make the most of it.
I realise that asking a question in a good way isn't the easiest thing for a novice, and that's exactly why I am addressing that, because I know that's something you need help with here! See. Using my effort where it's needed, rather than guessing what you want to know.