Implemented game of life in ruby