Hey :) People are more like to help if you edit your post and put all your code between code tags. They are under the format section <>.
Ive never done one of these before but I'll edit the post if I find some things I can add. For now all I can say is, change void main() to int main() And I would also advice you to not use global variables, move them all into main.
There have been a couple of people asking about minesweeper problems the past couple weeks. I particularly liked one of them where the board was a 2D array of ints, and whenever a tile was designated as a mine, then 10 was added to it. The eight tiles around it are all incremented by 1.