Ensures that the pancake stacks were flipped the same amount of time

This was the last missing part to (fix #80) after the recent addition
of Cohen's algorithm