refactor of games played graphs