Finish neighbours calculation