public String toString() {
        String s = "";
        for (int y=0; y<height; y++) {
            for (int x=0; x<width; x++) {
                char symbol;
                switch (mapxy[x][y]) {
                    case 0:
                        symbol = '.'; 
                        break;
                    default:
                        symbol = 'X';
                        break;
                            
                }
                s += symbol;
            }
            s += '\n';
        }
        return s;
        
    }