public void Dig(int col, int row)
        {
            if (theMinefield.GetTile(col, row).IsFlagged)
            {
                statusMessage = "You must remove the flag before digging that space";
                return;
            }

            if (theMinefield.Dig(col, row)) // if it was a mine
            {
                GameOver(false);            // they lost
            }
            bool hasWon = true;

            // check if the user has won
            foreach (Tile t in theMinefield.IterateAllTiles())
            {
                // every tile should be either revealed or a mine
                if (t.IsHidden && !t.IsMine)
                {
                    hasWon = false;
                }
            }

            if (hasWon)
            {
                GameOver(true); // they won
            }
        }