Logic for running more than one animation

I am finding it difficult to run more than one animation. Animations are saved and tried to run with playAction(). But could get only one running. Little googling revealed that possible mechanisms are
maintaining state maintaining a variable
But couldn’t figure out how to do that. Sample blend file attached.I need to get CubeAction in the order.

Sample File