Game of life in ruby