Update MainWindow::onFindBest

- generate blocks at the beginning.