MineSweeper implementation.