game of life in ruby