The online recognition works. Added the ScoreGraph class