a simple game of life implementation