Fixed how neighbors get counted