Refactored Grid::getNeighborNodes(...) to look a little nicer