scoreboard players tag @e[name=StartGame,type=armor_stand] add Test

execute @e[name=ReadyToPlay,score_Ready=0] ~ ~ ~ scoreboard players tag @e[name=StartGame,type=armor_stand] remove Test
execute @e[name=ReadyToPlay,score_Ready=0] ~ ~ ~ scoreboard players tag @e[name=StartGame,type=armor_stand] add CanStartError
execute @e[name=StartGame,type=armor_stand,tag=CanStartError] ~ ~ ~ tellraw @a[x=498,y=101,z=475,r=6] ["",{"text":"Freezun","color":"aqua","bold":"true"},{"text":" "},{"text":"»","color":"dark_gray"},{"text":" "},{"text":"Can't start the game. You need at least one real player to start. Put yourself ready to play.","color":"red"}]

execute @e[name=ReadyToPlay,score_ReadyToPlay=1] ~ ~ ~ scoreboard players tag @e[name=StartGame,type=armor_stand] remove Test
execute @e[name=ReadyToPlay,score_ReadyToPlay=1] ~ ~ ~ scoreboard players tag @e[name=StartGame,type=armor_stand] add CanStartError1
execute @e[name=StartGame,type=armor_stand,tag=CanStartError1] ~ ~ ~ execute @s[tag=!CanStartError] ~ ~ ~ tellraw @a[x=498,y=101,z=475,r=6] ["",{"text":"Freezun","color":"aqua"},{"text":" "},{"text":"»","color":"dark_gray"},{"text":" "},{"text":"Can't start the game. You need at least two players to start. Add some Artificial player to play.","color":"red"}]

execute @e[type=armor_stand,score_OptionsFail_min=1] ~ ~ ~ scoreboard players tag @e[name=StartGame,type=armor_stand] remove Test
execute @e[type=armor_stand,score_OptionsFail_min=1] ~ ~ ~ scoreboard players tag @e[name=StartGame,type=armor_stand] add CanStartError2
execute @e[name=StartGame,type=armor_stand,tag=CanStartError2] ~ ~ ~ execute @s[tag=!CanStartError] ~ ~ ~ execute @s[tag=!CanStartError1] ~ ~ ~ tellraw @a[x=498,y=101,z=475,r=6] ["",{"text":"Freezun","color":"aqua"},{"text":" "},{"text":"»","color":"dark_gray"},{"text":" "},{"text":"Can't start the game. Someone is changing the options, wait until he finished to start!","color":"red"}]

scoreboard players tag @e[name=StartGame,type=armor_stand,tag=Test] add StartInit
execute @e[name=StartGame,type=armor_stand,tag=Test] ~ ~ ~ summon area_effect_cloud 0 102 0 {CustomName:"Starting",Duration:301}
execute @e[name=StartGame,type=armor_stand,tag=Test] ~ ~ ~ scoreboard players tag @e[name=FunctionRunner] remove LobbyOptions
execute @e[name=StartGame,type=armor_stand,tag=StartInit] ~ ~ ~ clone 11 100 12 13 102 12 499 100 524
execute @e[name=StartGame,type=armor_stand,tag=StartInit] ~ ~ ~ setblock 498 101 476 minecraft:wall_sign 3 replace {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"tellraw @p [\\\"\\\",{\\\"text\\\":\\\"Freezun\\\",\\\"bold\\\":true,\\\"color\\\":\\\"aqua\\\"},{\\\"text\\\":\\\" \\\"},{\\\"text\\\":\\\"»\\\",\\\"color\\\":\\\"dark_gray\\\"},{\\\"text\\\":\\\" \\\"},{\\\"text\\\":\\\"Game has already started.\\\",\\\"color\\\":\\\"red\\\"}]\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Game already\",\"bold\":true,\"color\":\"red\"}",Text3:"{\"text\":\"started\",\"bold\":true,\"color\":\"red\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @e[name=StartGame,type=armor_stand,tag=StartInit] ~ ~ ~ setblock 499 101 475 minecraft:wall_sign 5 replace {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"tellraw @p [\\\"\\\",{\\\"text\\\":\\\"Freezun\\\",\\\"bold\\\":true,\\\"color\\\":\\\"aqua\\\"},{\\\"text\\\":\\\" \\\"},{\\\"text\\\":\\\"»\\\",\\\"color\\\":\\\"dark_gray\\\"},{\\\"text\\\":\\\" \\\"},{\\\"text\\\":\\\"Game has already started.\\\",\\\"color\\\":\\\"red\\\"}]\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Game already\",\"bold\":true,\"color\":\"red\"}",Text3:"{\"text\":\"started\",\"bold\":true,\"color\":\"red\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
scoreboard players tag @e[name=StartGame,type=armor_stand] remove Test
scoreboard players tag @e[name=StartGame,type=armor_stand] remove CanStartError
scoreboard players tag @e[name=StartGame,type=armor_stand] remove CanStartError1
scoreboard players tag @e[name=StartGame,type=armor_stand] remove CanStartError2