There was a bug in the previous submission. quests.size() changes after the first for loop, so now we store that size into a variable to use it in the second for loop