An implementation of game of life in Erlang