Flip, flip and flip some more

Challenge derived from FiveThirtyEight's The Riddler.





.

(thank you to Le Liu for the coin flip animation)