converting default game of life methods to private methods