// Find the result. Skip games with no result.
for (move = current_game.moves; move != NULL; move = move->next) {
+ if (move->class == NULL_MOVE) {
+ // Skip games with null moves.
+ return;
+ }
if (move->terminating_result) {
result = move->terminating_result;
}