Added Ace rank in rankStrings. Logic for max flips.