GAme of life in Ruby