bugfix: next_board can be null