minesweeper function

The Minesweeper game in R