working game of life rb soln