partially fixes one bug in alive? method. other bugs still present in num_of_neighbors