Note: I am a new programmer and I will probably make mistakes.
Are you showing us the full code, or just part of it? Because if every time you put a new item in, the list will increase, making it one longer, and then when it puts in a new item, the process will happen again. But I know, it...