This method checks if the cell is an edge cell (on a border) and then counts how many live neighbors it has. The value is then returned and used to determine if that cell li