Prevent that str_board leaks memory

* free `str_board` when the program exits
* free `str_board` when the Run button is clicked
* add assertions