Adjusted end_game function so only winning graphs are shown