This is a data structure problem. A circular queue allows you to specify a size for easier memory management. It’s initialized with a set number of slots. Each write operation fills a slot, each read operation empties a slot.
We find ourselves confronted with people who are better than us at something and we convince ourselves it’s because they have an innate talent we don’t have. Usually it’s just that they’ve had more exposure, more practice, and often more interest. But because we convince ourselves mastery of that thing boils down to talent, rather than hard work, we start to believe that we can’t master it.