Clarified the maps in the getNeighbors function