Moved the duplicate name check to the Players class, test file with testing code