B1GGames = {
let B1GIds = B1G.map((t) => t.massey_id);
let B1GGames = raw_massey_games.filter(
(game) => B1GIds.indexOf(game.team1) > -1 && B1GIds.indexOf(game.team2) > -1
);
B1GGames.forEach(function (g) {
delete g.day;
g.date = d3.utcParse("%Y%m%d")(g.date);
g.home1 = +g.home1;
g.home2 = +g.home2;
g.score1 = +g.score1;
g.score2 = +g.score2;
g.name1 = B1G.filter((t) => t.massey_id == g.team1)[0].massey_name;
g.name2 = B1G.filter((t) => t.massey_id == g.team2)[0].massey_name;
g.idx1 = B1G.filter((t) => t.massey_id == g.team1)[0].idx;
g.idx2 = B1G.filter((t) => t.massey_id == g.team2)[0].idx;
});
return B1GGames;
}