added getWaypointsGrid()