Finished rough implementation of flip.

Finished rough implementation of flip component. Added demos of playing
cards and coin.

Refactored general component use to work correctly with collections.
Want to change this to make it look better in future.
Fixes.