private void generateMap(){
        int width=(int)Math.round(Math.random()*50)+40;
        int height=(int)Math.round(Math.random()*50)+40;
        System.out.println("Size: " + width*height);
        this.gMap=new Vertex[height][width];
        char[][] generatedMap = new char[height][width];
        for(int y=0; y<height; y++){
            for(int x=0; x<width; x++){
                if(x==0 || y==0 || x==width-1 || y==height-1){
                    generatedMap[y][x]='#';
                }else{
                    if(Math.round(Math.random()*3)==1){
                        generatedMap[y][x]='#';
                    }else{
                        generatedMap[y][x]='.';     
                    }
                }
                gMap[y][x]=new Vertex(x+","+y);
            }
        }
        this.map=generatedMap;
    }