int charge = c.getIntValue(1);
boolean addAction = true;
for (EntityAction ea : vector) {
int entityId = ea.getEntityId();
if ((ea instanceof TorsoTwistAction) && game.hasEntity(entityId)) {
TorsoTwistAction tta = (TorsoTwistAction) ea;
Entity entity = game.getEntity(entityId);
entity.setSecondaryFacing(tta.getFacing());
} else if ((ea instanceof FlipArmsAction) && game.hasEntity(entityId)) {
FlipArmsAction faa = (FlipArmsAction) ea;
Entity entity = game.getEntity(entityId);
entity.setArmsFlipped(faa.getIsFlipped());
} else if ((ea instanceof DodgeAction) && game.hasEntity(entityId)) {