Game of life implemented in node.js