move iterate_board_index to test