day 3 of ruby, game of life implemented