load.mcfunction bugged

can anyone help me debug this code? it is my load.mcfunction. none of the code runs when i reload the pack. i changed the entire file to just have a tellraw, and that worked on load, but when i added my code back it stopped working

team remove Crows
team remove Ravens

tellraw @a {"text": "MKC Loaded!", "color": "#BF40BF"}

scoreboard objectives add Kills playerKillCount
scoreboard objectives add KillsSidebar dummy
scoreboard objectives setdisplay list Kills
scoreboard objectives setdisplay belowName Kills
scoreboard objectives modify Kills displayname  {"text": "⚔","color": "#A30000"}
scoreboard objectives modify KillsSidebar displayname  {"text": "⚔ Kills ⚔","color": "#A30000"}

# TEAM SETUP #
team add Magpies "Magpies"
team add Crows "Crows"
team add Ravens "Ravens"

team modify Magpies color light_purple
team modify Crows color gold
team modify Ravens color dark_purple

team modify Magpies prefix "[Magpies] "
team modify Crows prefix "[Crows] "
team modify Ravens prefix "[Ravens] "

team modify Magpies friendlyFire false
team modify Magpies seeFriendlyInvisibles true
team modify Crows friendlyFire false
team modify Crows seeFriendlyInvisibles true
team modify Ravens friendlyFire false
team modify Ravens seeFriendlyInvisibles true

# CUSTOM COMMANDS #
scoreboard objectives add enableSidebar trigger
scoreboard objectives add disableSidebar trigger
scoreboard objectives add clearAllPlayers trigger
scoreboard objectives add resetDatapack trigger
scoreboard objectives add pickTeam trigger
scoreboard objectives add joinMagpies trigger
scoreboard objectives add joinCrows trigger
scoreboard objectives add joinRavens trigger

# ONLY SELECT TEAMS ONCE #
scoreboard players set @a pickTeam 27142714
scoreboard players set @a joinMagpies 27142714
scoreboard players set @a joinCrows 27142714
scoreboard players set @a joinRavens 27142714
scoreboard players enable @a pickTeam
scoreboard objectives add hasSelected dummy```
Continue to help post