The object of Minesweeper is to uncover all squares without mines, not to find all the mines (although finding mines can help). Therefore, this program will not say that you've won until you've uncovered all squares. Note that some programs may go by mines marked; these programs are, in my opinion wrong, and my program is right. This program does not actually care about which mines are marked, meaning you can actually play without marking any mines (this is more challenging).
Click all unmarked squares