Refactoring getItemBaseName function to use helper for checking if an item is in a list or a map. This allows the rings and amulets objects to be array and not hacky maps.