if (!(fen instanceof Mech)) {
if ( fen instanceof Infantry ) {
    protected PhysicalOption getBestPhysicalAttack(int from, int to)    {        Entity ten = game.getEntity(to);        Entity fen = game.getEntity(from);                if (!(fen instanceof Mech)) {            return null;        }                double bestDmg=0, dmg;        int damage;        int bestType = PhysicalOption.PUNCH_LEFT;        ToHitData odds = Compute.toHitPunch(game, from, to, PunchAttackAction.LEFT);        if (odds.getValue() != ToHitData.IMPOSSIBLE) {            damage = Compute.getPunchDamageFor(fen, PunchAttackAction.LEFT);            bestDmg = Compute.oddsAbove(odds.getValue()) / 100.0 * damage;        }                odds = Compute.toHitPunch(game, from, to, PunchAttackAction.RIGHT);        if (odds.getValue() != ToHitData.IMPOSSIBLE) {            damage = Compute.getPunchDamageFor(fen, PunchAttackAction.RIGHT);            dmg = Compute.oddsAbove(odds.getValue()) / 100.0 * damage;            if (dmg > 0 && bestDmg > 0) {                bestType = PhysicalOption.PUNCH_BOTH;                bestDmg += dmg;            } else {                bestType = PhysicalOption.PUNCH_RIGHT;                bestDmg = dmg;            }        }                odds = Compute.toHitKick(game, from, to, KickAttackAction.LEFT);        if (odds.getValue() != ToHitData.IMPOSSIBLE) {            damage = Compute.getKickDamageFor(fen, KickAttackAction.LEFT);            dmg = Compute.oddsAbove(odds.getValue()) / 100.0 * damage;            if (dmg > bestDmg) {                bestType = PhysicalOption.KICK_LEFT;                bestDmg = dmg;            }        }        odds = Compute.toHitKick(game, from, to, KickAttackAction.RIGHT);        if (odds.getValue() != ToHitData.IMPOSSIBLE) {            damage = Compute.getKickDamageFor(fen, KickAttackAction.RIGHT);            dmg = Compute.oddsAbove(odds.getValue()) / 100.0 * damage;            if (dmg > bestDmg) {                bestType = PhysicalOption.KICK_RIGHT;                bestDmg = dmg;            }        }        if (bestDmg > 0) {            return new PhysicalOption(ten, bestDmg, bestType);            }        return null;    }