Part of Conway's Game of Life in Ruby