public Point[] getPointFields(){
        Point[] pret = new Point[getSize()*getSize()];
        int counter=0;
        for(int i=0; i<getSize();i++){
            for(int j=0; j<getSize(); j++){
                Point p = new Point(i,j);
                pret[counter]=p;
                counter++;
            }
        }
        return pret;
    }