Finalized flaggNeighbor counter

asdfasdf