Game of life in Ruby