scoreboard players set @s left_right 0
scoreboard players set @s up_down 0

scoreboard players set @s[tag=lr1] up_down -1
scoreboard players set @s[tag=lrn1] up_down 1
scoreboard players set @s[tag=ud1] left_right 1
scoreboard players set @s[tag=udn1] left_right -1