Function direction_shift_square_set has its tests.