Added ScoreManager and retuned the interaction between notes and keys, as well as notes and score.