public boolean isBingo(boolean[][] board) {
    boolean ldiag = true;
    boolean rdiag = true;

    for (int x = 0; x < 5; x++) {
      boolean hwin = true;
      boolean vwin = true;
      for (int y = 0; y < 5; y++) {
        hwin = hwin && board[x][y];
        vwin = vwin && board[y][x];
      }
      if (hwin || vwin) {
        return true;
      }

      ldiag = ldiag && board[x][x];
      rdiag = rdiag && board[x][4 - x];
    }
    return ldiag || rdiag;
  }