Changed getNeighbors so that it just returns the neighbors of the object configuration