I'm developing a little simon says style game based on the brilliant code provided from: Building Simon Says with JavaScript | Code Planet

Although this code has helped me to get me started I'm wanting manipulate it slightly so that after the start button is clicked five squares are chosen at random, and one by one animate their opacity slightly to denote a sequence to the user. At this point the user would then be prompted on-screen to attempt to copy the pattern just shown.

I'm pretty knew to JavaScript but I have a feeling that it has something to do with this code:

 Collapse | Copy Code
randomNumber: function() {
        // between 1 and 9
        return Math.floor((Math.random()*9)+1);
I'm just not too sure how to edit it to solve the issue. You can see my working model at : Sequences

Any help would be massively appreicated as I would like to pass it on to the client on Saturday.