Erlang version of Tim's game.  https://github.com/mrtimuk/set