Worth implementing an `__eq__` method, or updating this to be `if curr_node is node`? Not sure what the intended comparison is here