gazoogle,
i'm sure others will better define the answer, but i don't think you need a classic loop to accomplish this. that's the beauty of the event system. you could simply cycle between the two; computer and player. with rules defining how they complete their turn.
example...
-setup array at beginning
-setup variable for 'sequence' at beginning
-computer add to 'sequence' random color
-computer play 'sequence'
-prompt player to copy 'sequence'
-check if player 'sequence' matched computer sequence or not
this is very vague pseudo code, but it should give you an idea of haw to proceed.
hope it helps...