A new function square_set_to_array has been added to the board module.