Hate to say it, but there's a lot wrong with your CAP. First, we'll start off with the main problem.
First we'll take a look at this chunk:
These "For each" loops are unnecessary and messing up the picking. Instead of only picking the most recently created object, it's looping through each object created up to now and performing actions on it. This means that whatever happens to the last object you create will happen to all of your objects. To fix this, just take the actions from the "For each" loops and place them in the "Repeat" loop, then put the sub-events to the second "For each" loop as a subevent to the "Repeat" loop and get rid of the "For each" loops, like this:
Also, the int() cast when generating a random number is unnecessary and seems to be messing things up. And since you only have four objects, the expression should be this: 1 + random(4)
Next up, we have this chunk:
These else conditions are unnecessary and messing things up due to issues with the else condition. The checks to see which animation is playing are also unnecessary, as are the actions to tell the current animation to play. An animation automatically starts playing when you switch, so they're not needed. This chunk should look more like this:
And that should get it working. Not only will this fix the problems, but you'll also get cleaner code, which is always a good thing.
Here's a download for the modified CAP.