Use Ractive events to flip cards

Use the ractive On event handler to flip cards