How Does Minesweeper Algorithm Work