Use grid.keySet() to get a list of points.