add Minesweep solve code