Changed getNeighbors to return a copy of the vector rather than a reference to it, safer this way