had to rework it so that the hashmap would be created by after the entire list was made instead of making a list after each line was read