erlang game of life