I'm not sure what your problem is. The way you built it, it works fine.
If you want to see the results while it's running, place the arrays inside the loop.
To see that you're getting correct results, change the wait to 0. Now it will run faster and you can see that the numbers are more or less equal for each side.
Now, There is only one problem with your "cheat" - using the insert into array requires a lot of resources, because the memory for the array needs to be reallocated every time you make the array bigger. Remove that part, and you will see it runs much much faster.
After going back to the original exercise, I see that you need to roll X times, so make a numeric control, replace the while loop with a for loop and wire the numeric into N. Since this isn't user dependent, you can also remove the wait completely.
___________________
Try to take over the world!