I found a solution, but it seems to be too long...needs refactoring? After I checked for duplicates, I had 7 more checks to catch them all. Seems like three should be enough?