19920 lines palette crash

improved function staff(int) in score.h