Edit to fix scoreboard

why is the scoreboard not updating?