first pass statemachine

- basic statemachine logic
- mancala now uses a statemachine
cardLayout library

- created cardLayout library for managing card layouts (provides fan,
stack and random styles)
- updated example to use the layout library