+var find_total_games = function(moves) {
+ var total_num = 0;
+ for (var i = 0; i < moves.length; ++i) {
+ var move = moves[i];
+ if (move['move']) {
+ total_num += move['white'];
+ total_num += move['draw'];
+ total_num += move['black'];
+ }
+ }
+ return total_num;
+}
+