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)) {
Entity entity = game.getEntity(entityId);
entity.dodging = true;
addAction = false;
} else if (ea instanceof AttackAction) {