@Override
    public void actionPerformed(ActionEvent e) {
        if (e.getSource().equals(addTile)) {
            operations.addImage();
        }
        if (e.getSource().equals(changeLayer)) {
            switch (changeLayer.getText()) {
                case "1":
                    changeLayer.setText("2");
                    operations.canvas.changeCurrentLayer(1);
                    break;
                case "2":
                    changeLayer.setText("1");
                    operations.canvas.changeCurrentLayer(0);
                    break;
            }

        }
        if (e.getSource().equals(newMap)) {
            operations.newMap();
        }
        if (e.getSource().equals(loadMap)) {
            operations.loadMap();
        }
        if (e.getSource().equals(saveMap)) {
            operations.saveMap();
        }

    }