@Override
    public void actionPerformed(ActionEvent e) {
        if (e.getSource().equals(exitProgram)) {
            System.exit(0);
        }
        if (e.getSource().equals(loadFile)) {
            operations.loadMap();
        }
        if (e.getSource().equals(saveFileAs)) {
            operations.saveMapAs();
        }
        if (e.getSource().equals(saveFile)) {
            operations.saveMap();
        }
        if (e.getSource().equals(clear)) {
            operations.clearMap();
        }
        if (e.getSource().equals(newFile)) {
            operations.newMap();
        }
        if (e.getSource().equals(addTile)) {
            operations.addImage();
        }
        if (e.getSource().equals(editInfo)) {
            operations.EditMapInfo();
        }
        if (e.getSource().equals(saveTileSet)) {
            operations.saveTileSet();
        }
    }