IHex curHex = game.board.getHex( coords );
IHex curHex = game.getBoard().getHex( coords );
    private void resolveFindClub(Entity entity) {        EquipmentType clubType = null;        entity.setFindingClub(true);        // Get the entity's current hex.        Coords coords = entity.getPosition();        IHex curHex = game.board.getHex( coords );        // Is there a blown off arm in the hex?        if (curHex.terrainLevel(Terrains.ARMS) > 0) {            clubType = EquipmentType.get("Limb Club");            curHex.addTerrain(Terrains.getTerrainFactory().createTerrain(Terrains.ARMS, curHex.terrainLevel(Terrains.ARMS)-1));            sendChangedHex(entity.getPosition());            phaseReport.append("\n" ).append( entity.getDisplayName() ).append( " picks up a blown-off arm for use as a club.\n");        }        // Is there a blown off leg in the hex?        else if (curHex.terrainLevel(Terrains.LEGS) > 0) {            clubType = EquipmentType.get("Limb Club");            curHex.addTerrain(Terrains.getTerrainFactory().createTerrain(Terrains.LEGS, curHex.terrainLevel(Terrains.LEGS)-1));            sendChangedHex(entity.getPosition());            phaseReport.append("\n" ).append( entity.getDisplayName() ).append( " picks up a blown-off leg for use as a club.\n");        }        // Is there the rubble of a medium, heavy,        // or hardened building in the hex?        else if ( Building.LIGHT < curHex.terrainLevel( Terrains.RUBBLE ) ) {            // Finding a club is not guaranteed.  The chances are            // based on the type of building that produced the            // rubble.            boolean found = false;            int roll = Compute.d6(2);            switch ( curHex.terrainLevel( Terrains.RUBBLE ) ) {            case Building.MEDIUM:                if ( roll >= 7 ) {                    found = true;                }                break;            case Building.HEAVY:                if ( roll >= 6 ) {                    found = true;                }                break;            case Building.HARDENED:                if ( roll >= 5 ) {                    found = true;                }                break;            }            // Let the player know if they found a club.            if ( found ) {                clubType = EquipmentType.get("Girder Club");                phaseReport.append( "\n" )                    .append( entity.getDisplayName() )                    .append( " found a girder to use as a club.\n" );            } else {                clubType = null;                phaseReport.append( "\n" )                    .append( entity.getDisplayName() )                    .append( " did not find a club, but may have better luck next turn.\n" );            }        }        // Are there woods in the hex?        else if ( 1 <= curHex.terrainLevel( Terrains.WOODS ) ) {            clubType = EquipmentType.get("Tree Club");            phaseReport.append("\n" ).append( entity.getDisplayName() ).append( " uproots a tree for use as a club.\n");        }        // add the club        try {            if (clubType != null) {                entity.addEquipment(clubType, Mech.LOC_NONE);            }        } catch (LocationFullException ex) {            // unlikely...            phaseReport.append("\n" )                .append( entity.getDisplayName() )                .append( " did not have room for a club.\n");        }    }