Conway's Game of Life implementation in Ruby