nodes now connected. nodes randomized. switched to hashmap data structure