Conway's Game of Life in node.js