Changed push(StringStack) in StringStack loop to for from while