Fix getSmallestGrid to look at center point instead of size of grids