Looping through an array?

It looks like you are trying to create Mancala - The African Stone Game is that correct?