search board and write result to file