Bug fixed in check_neighbors.