for (int x=0; x<c.length; x++) {  if (!deploy_me.isHexProhibited(game.getBoard().getHex(c[x].x, c[x].y))) { return c[x];
for (int x = 0; x < c.length; x++) {     mech_count = 0; conv_fcount = 0; conv_ecount = 0; for (Enumeration stacked_ents = game.getEntities(c[x]); stacked_ents.hasMoreElements();){ Entity test_ent = (Entity) stacked_ents.nextElement(); if (test_ent instanceof Mech) { mech_count++; } else { if (deploy_me.isEnemyOf(test_ent)){ conv_ecount++; } else { conv_fcount++; } }
    protected Coords getCoordsAround(Entity deploy_me, Coords[] c) {        // Check all of the hexes in order.        for (int x=0; x<c.length; x++) {            // Verify that the unit can be placed in this hex            if (!deploy_me.isHexProhibited(game.getBoard().getHex(c[x].x, c[x].y))) {                return c[x];            }        }        // If NONE of them are acceptable, then just return null.        return null;/*        // check the requested coords        if (game.getBoard().isLegalDeployment(c, this.getLocalPlayer()) && game.getFirstEntity(c) == null) {            // Verify that the unit can be placed in this hex            if (!deploy_me.isHexProhibited(game.getBoard().getHex(c.x, c.y))) {                return c;            }        }        // check the rest of the list.        for (int x = 0; x < 6; x++) {            Coords c2 = c.translated(x);            if (game.getBoard().isLegalDeployment(c2, this.getLocalPlayer()) && game.getFirstEntity(c2) == null) {                if (!deploy_me.isHexProhibited(game.getBoard().getHex(c2.x, c2.y))) {                    return c2;                }            }        }        // recurse in a random direction        return getCoordsAround(deploy_me, c.translated(Compute.randomInt(6)));*/    }