Controlling Multiple Actors!

Hello, I'm new to this so please bear with me 
I have 64 separate actors in the scene. I've set up rules and attributes so that when one actor is touched, it activates (changes image). When touched again, the actor is deactivated (reverts to original image).
The problem is that I want to only allow for ONE activation/deactivation at a time. Currently, the player can activate as many actors as they please, and then deactivate however many they choose. I want the player to deactivate the actor, before it can activate a new actor.
Thanks in advance!

I have 64 separate actors in the scene. I've set up rules and attributes so that when one actor is touched, it activates (changes image). When touched again, the actor is deactivated (reverts to original image).
The problem is that I want to only allow for ONE activation/deactivation at a time. Currently, the player can activate as many actors as they please, and then deactivate however many they choose. I want the player to deactivate the actor, before it can activate a new actor.
Thanks in advance!

Comments
When touch is pressed change attribute self.dected to true
So in the move or accelerate or whatever you have. Say that self.detect needs to be true for the actor to move.
hope this helps
PL
hope that helps
kipper
I took your advice and created a game attribute to serve as a flag. When one actor is activated I set the game attribute to false. There is a rule that says actors can only be activated when the game attribute is true. When a activated actor becomes deactivated, the game attribute changes to false. However, I still have the problem that the other actors are still active, despite the game attribute.
I've linked screen shots to help in this matter. FYI, there are other attributes here that allow for the actor to change image to depict activation vs. deactivation - this can be disregarded.
Thank you for your time and help!
1) https://skitch.com/anishunleashed/f4e5e/cube-crusher-grid-prototype
2) https://skitch.com/anishunleashed/f4eha/cube-crusher-grid-prototype
3) https://skitch.com/anishunleashed/f4eh9/cube-crusher-grid-prototype
kipper