Entity(int type,ImageIcon icon) {
        this.type = type;
        this.icon = icon;
        switch (type) {
            case WALL:
                this.destructable = false;
            case BOX:
                this.destructable = true;
            case PATH:
                this.destructable = false;
                this.isPath = true;
            case EXIT:
                this.destructable = false;
            case BOMB:
                this.destructable = true;
        }
    }