Ruby on Rails implementation of Conway's game of life