Game of life implementations in both Ruby and JS