A rewrite of Minesweeper by chris-blay