super.undeploy(checkForLonelyBuilderOrPig); //clear piece
if (checkForLonelyBuilderOrPig) {
boolean builder = game.hasCapability(BuilderCapability.class) && (piece instanceof City || piece instanceof Road);
boolean pig = game.hasCapability(PigCapability.class) && piece instanceof Farm;
if (builder || pig) {
Special toRemove = piece.walk(new RemoveLonelyBuilderAndPig(getPlayer()));
if (toRemove != null) {
toRemove.undeploy(false);
}
}
}