fixed drawing and updating graph/game data