Calculating Minesweeper probabilities cleanly, efficiently and correctly.