Better document square flipping helpers