change check_neighbors() for check_neighbor()