Pokemon inpokemonList has never been updated after been added to this HashMap. Specifically, the battleWildPokemon function updates only the matches and wins data for Pokemon in trainerToPokemon HashMap, leading to a discrepancy between the values in pokemonList and trainerToPokemon.