Rewrote scores assignment