Better solution for minesweeper that works on large problem