
After grid is full (freeidx.size == 0), create copy of the grid and try move in each direction. If nothing changes, game over.
After grid is full (freeidx.size == 0), create copy of the grid and try move in each direction. If nothing changes, game over.