Implemented getNode(x) and modified find(x) to rely on it instead of duplicating code