Hi, I'm a bit new... I am making a snake game, and am trying to do it so that everytime a key is pressed, it creates a new variable and puts the x or y coordinate in it. How do I do this without creating like a thousand variables?
I would be really grateful if you could help me.

