public String toString(){
	String ret="";
	for (int row = 0; row < _r; row++){
	    for ( int col =0; col < _c; col++){
		if (mazeArray[row][col].isVisited()){
		    maze[row+1][col+1] = "  ";
		}
	    }
	}
	maze[0][1] = "SS";
	maze[_r+1][_c] = "EE";
	int l = _r;
	int m = _c;
	while (maze[l][m].equals("[]")){
	    maze[l][m] = "  ";
	    l-= 1;
	}//to make sure the exit is accessible
	   
	for (int row = 0; row < _r+2; row++){
	    for ( int col =0; col < _c+2; col++){
		ret+= maze[row][col];
	    }
	    ret+= "\n";
	}
	return ret;
    }