Fixed it so instead of adding to an array, added to a hashmap (dictionary)