fixed refactoring issue

caused an issue by refactoring loops to better fit the story.
added new var to fix issue