fixed a bug in the grids game