middle_ladder_walk(): Use alloca() for board copy allocation