added examples and a card game