Okay. So think about this logically:

Your outer loop needs to repeat 10000 times. Right now you have...

for (NUM_GAMES = 10000)

...but this won't work. All you're doing is telling the for...