Added Pancakes and Flip function