Ok..
What I said wouldn't take a week.
You don't need global variables, because like I tried to explain using instance variables would work.
I don't now what total.points is, I was talking about green.points and green.totalpoints.
If you set green.totalpoints to 2*green.points there will be a difference, because 2*something is different from 1*something, unless the something is 0.
Let's recap
-you are changing the value of global2 on x2 pressed
-you are NOT changing the value of green.points on x2 pressed
- the string displays green.points
- the value in the string doesn't change, because the value of green.points doesn't change.
solution:
either change the value of green.point on x2 pressed.
or change the value of another variable and have the string display that variable, only using green.points as a number to calculate the value of the new variable.