Just swap the mine with any randomly chosen empty tile, no need to regenerate the board.
It's also why you shouldn't click in the top left corner in the game if you're hoping for a good cascade, because you're less likely to get one.
https://web.archive.org/web/20180618103640/http://www.techus...