Added GLGrid class to handle grid-specific information