Now using GLGrid object to get grid dimensions