better error checking for game of life