Add Tic-Tac-Toe example

Closes #175.