Neighbors function now works