Fixed forever while loop (new struct was declared outside of loop even though each new one created was to be different)