a simple implementation of minesweeper