Game of life using nodejs