function iswall(i,j) {
            if(i >= width || i < 0 || j >= height || j < 0) {
                return 1;
            }else{
                return map[i][j];
            }
        }
//function for finding if one point is a wall
function for finding if one point is a wall
function for finding if one point is a wall
function iswall(i,j) {
            if(i >= width || i < 0 || j >= height || j < 0) {
                return 1;
            }else{
                return map[i][j];
            }
        }
function iswall ( i , j ) { if ( i >= width || i < 0 || j >= height || j < 0 ) { return 1 ; } else { return map [ i ] [ j ] ; } }
function for finding if one point is a wall
function for finding if one point is a wall