Implemented getNeighbors
Formatting