middle-edge wrapping largely works

still some weird glitches with blocks going missing or not vanishing, in
the middle rows/columns