Updated Flip method top take both directions