Before that, though, take a look at Serial Input Basics to see how to read in that 1 that you need. The first example in that tutorial uses a flag called newData and uses that in a function called showNewData(). I would stick the for loop stuff in there to make sure it happens once only, for the new 1. It gives the program a nice tidy look.
What does saved mean in this context?