adds exit string to nodes if they're exits, enumerates direction in set direction