I use html table to draw a chess board(8x8), then generate a yellow cell appear randomly in chess board. This is the code:

```
$('#random').click(function(){
                for (i=0; i<100; i++){
                    setInterval(function(){
                        resetBoard(); // re-draw chess board without yellow cell
                        var index = Math.floor((Math.random() * 64));
                        $('.chess-board tr td').eq(index).css('background-color', 'yellow');    
            }, 150);
                }
});

```

The appearence of yellow cell doesn't stop. And that code make browser compute very much (I saw in Task Manager Firefox use 32% CPU while run this).
What is the problem in this, thank bro ?