As my final project, I've been working on recreating a Simon-like game and I can't for the life of me figure out how to program a typical Simon-style pattern. I have no problem with randomization, the user matching each color, or adding to a pattern. I just don't know how to get the previous pattern to play so I can add a new random color to the pattern until the player misses.

I have attached what I have so far. I have about a week to get this done so any help without directly giving me the solution would be greatly appreciated.

I was thinking that using a list was going to be the best way too since it can grow and shrink as needed. The problem is that I know how to get the values into a list, but I don't know how to extract the values that I need from it -- such as getting the stored pattern to play in a specific order.