added updateGrid() function to recalculate the grid.
added setGridRange() slot to PlanetsWidget.
made grid variables private.