When a criminal act is done by several persons in furtherance of the common intention of all, each of such persons is liable for that act in the same manner as if he did it alone.