System.out.println("trying blk file");
    public void actionPerformed(ActionEvent ev) {        if (ev.getSource() == butReady) {            client.sendReady(!client.getLocalPlayer().isReady());            refreshReadyButton();        } else if (ev.getSource() == butLoad) {            // add (load) mech            FileDialog fd = new FileDialog(client.frame,                                            "Select a .mep file...",                                           FileDialog.LOAD);            fd.setDirectory("data" + File.separator + "mep");            fd.show();            if (fd.getFile() == null) {                return;            }                        // access the file            File file = new File(fd.getDirectory(), fd.getFile());            if (!file.exists()) {                // error reading file                new AlertDialog(client.frame, "Open", "Error: could not read file or file not found.").show();                return;            }                        // read the file            Mech mech = null;            if (file.getName().toLowerCase().endsWith(".mep")) {                System.out.println("trying mep file");                mech = new MepFile(file).getMech();            } else if (file.getName().toLowerCase().endsWith(".mtf")) {                System.out.println("trying mtf file");                mech = new MtfFile(file).getMech();            } else if (file.getName().toLowerCase().endsWith(".blk")) {                System.out.println("trying blk file");                mech = new BLKMechFile(file).getMech();            }            if (mech == null) {                // error making mech                new AlertDialog(client.frame, "Open", "Error: could not make mech from file (possibly not 3025.)").show();            } else {                mech.setOwner(client.getLocalPlayer());                client.sendAddEntity(mech);            }        } else if (ev.getSource() == butCustom) {            if (lisEntities.getSelectedIndex() != -1) {                Entity entity = client.game.getEntity(entityCorrespondance[lisEntities.getSelectedIndex()]);                boolean editable = entity.getOwnerId() == client.getLocalPlayer().getId();                // display dialog                CustomMechDialog cmd = new CustomMechDialog(client.frame, entity, editable);                cmd.show();                if (editable && cmd.isOkay()) {                    // send changes                                        client.sendUpdateEntity(entity);                }            }        } else if (ev.getSource() == butDelete) {            // delete mech            if (lisEntities.getSelectedIndex() != -1) {                client.sendDeleteEntity(entityCorrespondance[lisEntities.getSelectedIndex()]);            }        } else if (ev.getSource() == butChangeBoard) {            // board settings             client.getBoardSelectionDialog().update(client.getMapSettings(), true);            client.getBoardSelectionDialog().show();        } else if (ev.getActionCommand().startsWith("starting_pos_")) {            // starting position            client.getLocalPlayer().setStartingPos(Integer.parseInt(ev.getActionCommand().substring(13)));            client.sendPlayerInfo();        }    }