Ok well now it is working with an unordered_set, so I will now clean it up using the unordered set