Implemented a counter that displays the number of mines minus the number of flags, and wrote a method to determine if the game has been won.