Algorithm for Minesweeper to automatically solve all the non-ambiguous cases