Pathmaker updated for use with main_grid