a simple game of life implementation in Ruby