static boolean validNeighbours(int i, int j){
        boolean b= true;
        for(int k = i-5;k<=i+5;k++)
                for(int p = j-5;p<=j+5;p++)
                        if(k!= i || p != j)
                                if(map[k][p] == 2 || map[k][p] == 5)
                                        b= false;
        return b;
    }