Ah ha! Got it to work by creating new variables inside the widget and using those variables instead of the variables inside of the game instance. Thanks for the help!
EDIT: Just realised that all this time, I forgot to change my game instance to the one called “VariablesAndFunctions” which stores all my variables. That’s why it hasn’t been working all this time xD So there is no need to create new variables inside the widget.