move minesweeper to using grid