grid_collect_history
grid_collect_history(gd, 0);
grid_collect_history(gd, 1);
void grid_collect_history(struct grid *, int);