As a next challenge, can you ensure the board is solvable without guessing? You have to delay generating it until the user has done that first click, but there are some other constraints as well.
Also, you probably want to stop clicks on marked squares from exploding the mine.