public void display() {
   // TODO Auto-generated method stub
   for (int i = 0; i < rowmat; i++) {
     for (int j = 0; j < colmat; j++) {
       if (cellmat.thereIsUncovered(i, j)) {
         if (cellmat.thereIsFlag(i, j)) {
           System.out.println("F");
         } else {
           System.out.println(cellmat.getNumber(i, j));
         }
       } else {
         System.out.print("X");
       }
     }
     System.out.println();
   }
 }
 public boolean isWinningGame() {
   // TODO Auto-generated method stub
   int ContUncovered = 0;
   boolean GameOver = false;
   for (int i = 0; i < rowmat; i++) {
     for (int j = 0; j < colmat; j++) {
       if (cellmat.thereIsUncovered(i, j) || cellmat.thereIsFlag(i, j)) {
         ContUncovered++;
       }
     }
   }
   if (ContUncovered == cellmat.getNumberOfMines()) {
     GameOver = true;
     gameover = true;
   }
   return GameOver;
 }
 public void clearFlag(int row, int col) {
   // TODO Auto-generated method stub
   if (cellmat.thereIsFlag(row, col)) {
     cellmat.ClearFlag(row, col);
   }
 }
 public void flagAsMine(int row, int col) {
   // TODO Auto-generated method stub
   if (!cellmat.thereIsFlag(row, col)) {
     cellmat.setFlag(row, col);
   }
 }