#Init====================================================================#
scoreboard objectives remove Freezun
scoreboard objectives add Freezun dummy §3§lFreez§b§lun
#=======================================================================#
scoreboard players set  Freezun 8
scoreboard players set §1 Freezun 6
scoreboard players set §2 Freezun 4
#Map===================================================================#
execute @e[name=Map,score_Options_min=0,score_Options=0,type=armor_stand] ~ ~ ~ scoreboard players set §aVillage Freezun 7
execute @e[name=Map,score_Options_min=1,score_Options=1,type=armor_stand] ~ ~ ~ scoreboard players set §7FarmLand Freezun 7
execute @e[name=Map,score_Options_min=2,score_Options=2,type=armor_stand] ~ ~ ~ scoreboard players set §bFrosty Freezun 7
execute @e[name=Map,score_Options_min=3,score_Options=3,type=armor_stand] ~ ~ ~ scoreboard players set §1Building Freezun 7
execute @e[name=Map,score_Options_min=4,score_Options=4,type=armor_stand] ~ ~ ~ scoreboard players set §cRailway Freezun 7
execute @e[name=Map,score_Options_min=5,score_Options=5,type=armor_stand] ~ ~ ~ scoreboard players set §6Random Freezun 7
scoreboard teams join SpaceMap §aVillage
scoreboard teams join SpaceMap §7FarmLand
scoreboard teams join SpaceMap §bFrosty
scoreboard teams join SpaceMap §1Building
scoreboard teams join SpaceMap §cRailway
scoreboard teams join SpaceMap §6Random
#Murder===================================================================#
execute @e[name=MurderNumber,score_Options_min=1,score_Options=1,type=armor_stand] ~ ~ ~ scoreboard players set §a1§1 Freezun 5
execute @e[name=MurderNumber,score_Options_min=2,score_Options=2,type=armor_stand] ~ ~ ~ scoreboard players set §a2§1 Freezun 5
execute @e[name=MurderNumber,score_Options_min=3,score_Options=3,type=armor_stand] ~ ~ ~ scoreboard players set §a3§1 Freezun 5
scoreboard teams join SpaceMurder §a1§1
scoreboard teams join SpaceMurder §a2§1
scoreboard teams join SpaceMurder §a3§1
#Ready===================================================================#
scoreboard players set @e[name=ReadyToPlay,type=armor_stand] Ready 0
scoreboard players set @e[name=ReadyToBeMurder,type=armor_stand] Ready 0
execute @a[tag=Lobby] ~ ~ ~ scoreboard players add @e[name=ReadyToPlay,type=armor_stand] Ready 1
scoreboard players operation @e[name=ReadyToBeMurder,type=armor_stand] Ready = @e[name=ReadyToPlay,type=armor_stand] Ready
scoreboard players operation @e[name=ReadyToBeMurder,type=armor_stand] Ready += @e[name=ArtificialPlayer,type=armor_stand] Options

execute @e[name=ReadyToBeMurder,score_Ready_min=0,score_Ready=0,type=armor_stand] ~ ~ ~ scoreboard players set §c0§2 Freezun 3
execute @e[name=ReadyToBeMurder,score_Ready_min=1,score_Ready=1,type=armor_stand] ~ ~ ~ scoreboard players set §a1§2 Freezun 3
execute @e[name=ReadyToBeMurder,score_Ready_min=2,score_Ready=2,type=armor_stand] ~ ~ ~ scoreboard players set §a2§2 Freezun 3
execute @e[name=ReadyToBeMurder,score_Ready_min=3,score_Ready=3,type=armor_stand] ~ ~ ~ scoreboard players set §a3§2 Freezun 3
execute @e[name=ReadyToBeMurder,score_Ready_min=4,score_Ready=4,type=armor_stand] ~ ~ ~ scoreboard players set §a4§2 Freezun 3
execute @e[name=ReadyToBeMurder,score_Ready_min=5,score_Ready=5,type=armor_stand] ~ ~ ~ scoreboard players set §a5§2 Freezun 3
execute @e[name=ReadyToBeMurder,score_Ready_min=6,score_Ready=6,type=armor_stand] ~ ~ ~ scoreboard players set §a6§2 Freezun 3
execute @e[name=ReadyToBeMurder,score_Ready_min=7,score_Ready=7,type=armor_stand] ~ ~ ~ scoreboard players set §a7§2 Freezun 3
execute @e[name=ReadyToBeMurder,score_Ready_min=8,score_Ready=8,type=armor_stand] ~ ~ ~ scoreboard players set §a8§2 Freezun 3
execute @e[name=ReadyToBeMurder,score_Ready_min=9,score_Ready=9,type=armor_stand] ~ ~ ~ scoreboard players set §a9§2 Freezun 3
execute @e[name=ReadyToBeMurder,score_Ready_min=10,score_Ready=10,type=armor_stand] ~ ~ ~ scoreboard players set §a10§2 Freezun 3
execute @e[name=ReadyToBeMurder,score_Ready_min=11,score_Ready=11,type=armor_stand] ~ ~ ~ scoreboard players set §a11§2 Freezun 3
execute @e[name=ReadyToBeMurder,score_Ready_min=12,score_Ready=12,type=armor_stand] ~ ~ ~ scoreboard players set §a12§2 Freezun 3
execute @e[name=ReadyToBeMurder,score_Ready_min=13,score_Ready=13,type=armor_stand] ~ ~ ~ scoreboard players set §a13§2 Freezun 3
execute @e[name=ReadyToBeMurder,score_Ready_min=14,score_Ready=14,type=armor_stand] ~ ~ ~ scoreboard players set §a14§2 Freezun 3
execute @e[name=ReadyToBeMurder,score_Ready_min=15,score_Ready=15,type=armor_stand] ~ ~ ~ scoreboard players set §a15§2 Freezun 3
execute @e[name=ReadyToBeMurder,score_Ready_min=16,score_Ready=16,type=armor_stand] ~ ~ ~ scoreboard players set §a16§2 Freezun 3
execute @e[name=ReadyToBeMurder,score_Ready_min=17,score_Ready=17,type=armor_stand] ~ ~ ~ scoreboard players set §a17§2 Freezun 3
execute @e[name=ReadyToBeMurder,score_Ready_min=18,score_Ready=18,type=armor_stand] ~ ~ ~ scoreboard players set §a18§2 Freezun 3
execute @e[name=ReadyToBeMurder,score_Ready_min=19,score_Ready=19,type=armor_stand] ~ ~ ~ scoreboard players set §a19§2 Freezun 3
execute @e[name=ReadyToBeMurder,score_Ready_min=20,score_Ready=20,type=armor_stand] ~ ~ ~ scoreboard players set §a20§2 Freezun 3
scoreboard teams join SpaceReady §c0§2
scoreboard teams join SpaceReady §a1§2
scoreboard teams join SpaceReady §a2§2
scoreboard teams join SpaceReady §a3§2
scoreboard teams join SpaceReady §a4§2
scoreboard teams join SpaceReady §a5§2
scoreboard teams join SpaceReady §a6§2
scoreboard teams join SpaceReady §a7§2
scoreboard teams join SpaceReady §a8§2
scoreboard teams join SpaceReady §a9§2
scoreboard teams join SpaceReady §a10§2
scoreboard teams join SpaceReady §a11§2
scoreboard teams join SpaceReady §a12§2
scoreboard teams join SpaceReady §a13§2
scoreboard teams join SpaceReady §a14§2
scoreboard teams join SpaceReady §a15§2
scoreboard teams join SpaceReady §a16§2
scoreboard teams join SpaceReady §a17§2
scoreboard teams join SpaceReady §a18§2
scoreboard teams join SpaceReady §a19§2
scoreboard teams join SpaceReady §a20§2

execute @e[name=ReadyToPlay,score_Ready_min=0,score_Ready=0,type=armor_stand] ~ ~ ~ scoreboard players set §c0 Freezun 2
execute @e[name=ReadyToPlay,score_Ready_min=1,score_Ready=1,type=armor_stand] ~ ~ ~ scoreboard players set §a1 Freezun 2
execute @e[name=ReadyToPlay,score_Ready_min=2,score_Ready=2,type=armor_stand] ~ ~ ~ scoreboard players set §a2 Freezun 2
execute @e[name=ReadyToPlay,score_Ready_min=3,score_Ready=3,type=armor_stand] ~ ~ ~ scoreboard players set §a3 Freezun 2
execute @e[name=ReadyToPlay,score_Ready_min=4,score_Ready=4,type=armor_stand] ~ ~ ~ scoreboard players set §a4 Freezun 2
execute @e[name=ReadyToPlay,score_Ready_min=5,score_Ready=5,type=armor_stand] ~ ~ ~ scoreboard players set §a5 Freezun 2
execute @e[name=ReadyToPlay,score_Ready_min=6,score_Ready=6,type=armor_stand] ~ ~ ~ scoreboard players set §a6 Freezun 2
execute @e[name=ReadyToPlay,score_Ready_min=7,score_Ready=7,type=armor_stand] ~ ~ ~ scoreboard players set §a7 Freezun 2
execute @e[name=ReadyToPlay,score_Ready_min=8,score_Ready=8,type=armor_stand] ~ ~ ~ scoreboard players set §a8 Freezun 2
execute @e[name=ReadyToPlay,score_Ready_min=9,score_Ready=9,type=armor_stand] ~ ~ ~ scoreboard players set §a9 Freezun 2
execute @e[name=ReadyToPlay,score_Ready_min=10,score_Ready=10,type=armor_stand] ~ ~ ~ scoreboard players set §a10 Freezun 2
scoreboard teams join SpacePlayers §c0
scoreboard teams join SpacePlayers §a1
scoreboard teams join SpacePlayers §a2
scoreboard teams join SpacePlayers §a3
scoreboard teams join SpacePlayers §a4
scoreboard teams join SpacePlayers §a5
scoreboard teams join SpacePlayers §a6
scoreboard teams join SpacePlayers §a7
scoreboard teams join SpacePlayers §a8
scoreboard teams join SpacePlayers §a9
scoreboard teams join SpacePlayers §a10

execute @e[name=ArtificialPlayer,score_Options_min=0,score_Options=0,type=armor_stand] ~ ~ ~ scoreboard players set §c0§r Freezun 1
execute @e[name=ArtificialPlayer,score_Options_min=1,score_Options=1,type=armor_stand] ~ ~ ~ scoreboard players set §a1§r Freezun 1
execute @e[name=ArtificialPlayer,score_Options_min=2,score_Options=2,type=armor_stand] ~ ~ ~ scoreboard players set §a2§r Freezun 1
execute @e[name=ArtificialPlayer,score_Options_min=3,score_Options=3,type=armor_stand] ~ ~ ~ scoreboard players set §a3§r Freezun 1
execute @e[name=ArtificialPlayer,score_Options_min=4,score_Options=4,type=armor_stand] ~ ~ ~ scoreboard players set §a4§r Freezun 1
execute @e[name=ArtificialPlayer,score_Options_min=5,score_Options=5,type=armor_stand] ~ ~ ~ scoreboard players set §a5§r Freezun 1
execute @e[name=ArtificialPlayer,score_Options_min=6,score_Options=6,type=armor_stand] ~ ~ ~ scoreboard players set §a6§r Freezun 1
execute @e[name=ArtificialPlayer,score_Options_min=7,score_Options=7,type=armor_stand] ~ ~ ~ scoreboard players set §a7§r Freezun 1
execute @e[name=ArtificialPlayer,score_Options_min=8,score_Options=8,type=armor_stand] ~ ~ ~ scoreboard players set §a8§r Freezun 1
execute @e[name=ArtificialPlayer,score_Options_min=9,score_Options=9,type=armor_stand] ~ ~ ~ scoreboard players set §a9§r Freezun 1
execute @e[name=ArtificialPlayer,score_Options_min=10,score_Options=10,type=armor_stand] ~ ~ ~ scoreboard players set §a10§r Freezun 1
scoreboard teams join SpaceAI §c0§r
scoreboard teams join SpaceAI §a1§r
scoreboard teams join SpaceAI §a2§r
scoreboard teams join SpaceAI §a3§r
scoreboard teams join SpaceAI §a4§r
scoreboard teams join SpaceAI §a5§r
scoreboard teams join SpaceAI §a6§r
scoreboard teams join SpaceAI §a7§r
scoreboard teams join SpaceAI §a8§r
scoreboard teams join SpaceAI §a9§r
scoreboard teams join SpaceAI §a10§r
#Display==============================================================#
function main:scoreboard/display