simple game of life helper functions