public int sandinate(int X, int Y, int R)
        {
            int toReturn = 0;
        //    long time = System.nanoTime();
            for (int i1 = Math.max(X-(R+1),0); i1 < Math.min(X+(R+1),w); i1 ++)
            {
                for (int i2 = Math.max(Y-(R+1),0); i2 < Math.min(Y+(R+1),h); i2 ++)
                {
                    if (Math.round(Math.sqrt(Math.pow(i1-X,2)+Math.pow(i2-Y,2))) < (R/2)+.1&&cellData[i1][i2]==SAND)
                    {
                        cellData[i1][i2]=AIR;
                        toReturn++;
                    }
                }
            }
            return toReturn;
        }