Referencing and changing the variable in a different object

Did you set up the collisions to overlap?