static Set<Point> rangePonints(Point from,int k,Map<String,Point> pointMap){
        Set<Point> result=new HashSet<>();
        for(int i=0;i<=k;++i){
            collectPoint(pointMap,result,from,i,0);
            collectPoint(pointMap,result,from,-i,0);
            collectPoint(pointMap,result,from,0,i);
            collectPoint(pointMap,result,from,0,-i);
        }
        return result;
    }