gird.h: grid_marked, gird_island, and change grid structure