Added helper functions and grid building to BGChronMatch