Updated lib.php to print the ScoreBar tables