grid.h: grid_isWin