scripted_gui = {

	UNO_ui = {
		context_type = player_context
		window_name = "UNO_ui_window"
		
		visible = {
			OR = {
				has_country_flag = UNO_on
				AND = {
					is_ai = yes
					has_global_flag = ai_can_join
					OR = {
					has_country_flag = this_is_player_2
					has_country_flag = this_is_player_3
					has_country_flag = this_is_player_4
					has_country_flag = this_is_player_5
					has_country_flag = this_is_player_6
					}
				}
			}
	    }
		
		ai_enabled = {
			is_ai = yes
		}
		
		ai_check_scope = {
			
		}
		
		ai_weights = {
		
			# MIDDLE COLOR CHOOSING
			
			color_middle_red_click = {
				ai_will_do = {
					base = 10
					
					modifier = { 
						OR = {
							has_country_flag = card_red_0
							has_country_flag = card_red_1_one
							has_country_flag = card_red_1_two
							has_country_flag = card_red_2_one
							has_country_flag = card_red_2_two
							has_country_flag = card_red_3_one
							has_country_flag = card_red_3_two
							has_country_flag = card_red_4_one
							has_country_flag = card_red_4_two
							has_country_flag = card_red_5_one
							has_country_flag = card_red_5_two
							has_country_flag = card_red_6_one
							has_country_flag = card_red_6_two
							has_country_flag = card_red_7_one
							has_country_flag = card_red_7_two
							has_country_flag = card_red_8_one
							has_country_flag = card_red_8_two
							has_country_flag = card_red_9_one
							has_country_flag = card_red_9_two
							has_country_flag = card_red_block_one
							has_country_flag = card_red_block_two
							has_country_flag = card_red_reverse_one
							has_country_flag = card_red_reverse_two
							has_country_flag = card_red_plus_one
							has_country_flag = card_red_plus_two
						}
						factor = 10000
					}
				}
			}
			
			color_middle_blue_click = {
				ai_will_do = {
					base = 10
					
					modifier = { 
						OR = {
							has_country_flag = card_blue_0
							has_country_flag = card_blue_1_one
							has_country_flag = card_blue_1_two
							has_country_flag = card_blue_2_one
							has_country_flag = card_blue_2_two
							has_country_flag = card_blue_3_one
							has_country_flag = card_blue_3_two
							has_country_flag = card_blue_4_one
							has_country_flag = card_blue_4_two
							has_country_flag = card_blue_5_one
							has_country_flag = card_blue_5_two
							has_country_flag = card_blue_6_one
							has_country_flag = card_blue_6_two
							has_country_flag = card_blue_7_one
							has_country_flag = card_blue_7_two
							has_country_flag = card_blue_8_one
							has_country_flag = card_blue_8_two
							has_country_flag = card_blue_9_one
							has_country_flag = card_blue_9_two
							has_country_flag = card_blue_block_one
							has_country_flag = card_blue_block_two
							has_country_flag = card_blue_reverse_one
							has_country_flag = card_blue_reverse_two
							has_country_flag = card_blue_plus_one
							has_country_flag = card_blue_plus_two
						}
						factor = 10000
					}
				}
			}
			
			color_middle_yellow_click = {
				ai_will_do = {
					base = 10
					
					modifier = { 
						OR = {
							has_country_flag = card_yellow_0
							has_country_flag = card_yellow_1_one
							has_country_flag = card_yellow_1_two
							has_country_flag = card_yellow_2_one
							has_country_flag = card_yellow_2_two
							has_country_flag = card_yellow_3_one
							has_country_flag = card_yellow_3_two
							has_country_flag = card_yellow_4_one
							has_country_flag = card_yellow_4_two
							has_country_flag = card_yellow_5_one
							has_country_flag = card_yellow_5_two
							has_country_flag = card_yellow_6_one
							has_country_flag = card_yellow_6_two
							has_country_flag = card_yellow_7_one
							has_country_flag = card_yellow_7_two
							has_country_flag = card_yellow_8_one
							has_country_flag = card_yellow_8_two
							has_country_flag = card_yellow_9_one
							has_country_flag = card_yellow_9_two
							has_country_flag = card_yellow_block_one
							has_country_flag = card_yellow_block_two
							has_country_flag = card_yellow_reverse_one
							has_country_flag = card_yellow_reverse_two
							has_country_flag = card_yellow_plus_one
							has_country_flag = card_yellow_plus_two
						}
						factor = 10000
					}
				}
			}
			
			color_middle_green_click = {
				ai_will_do = {
					base = 10
					
					modifier = { 
						OR = {
							has_country_flag = card_green_0
							has_country_flag = card_green_1_one
							has_country_flag = card_green_1_two
							has_country_flag = card_green_2_one
							has_country_flag = card_green_2_two
							has_country_flag = card_green_3_one
							has_country_flag = card_green_3_two
							has_country_flag = card_green_4_one
							has_country_flag = card_green_4_two
							has_country_flag = card_green_5_one
							has_country_flag = card_green_5_two
							has_country_flag = card_green_6_one
							has_country_flag = card_green_6_two
							has_country_flag = card_green_7_one
							has_country_flag = card_green_7_two
							has_country_flag = card_green_8_one
							has_country_flag = card_green_8_two
							has_country_flag = card_green_9_one
							has_country_flag = card_green_9_two
							has_country_flag = card_green_block_one
							has_country_flag = card_green_block_two
							has_country_flag = card_green_reverse_one
							has_country_flag = card_green_reverse_two
							has_country_flag = card_green_plus_one
							has_country_flag = card_green_plus_two
						}
						factor = 10000
					}
				}
			}
		
			# WILD COLOR CARD
			
			wild_color_one_p1_click = {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
							AND = {
								has_global_flag = red_middle
								NOT = {
									OR = {
										has_country_flag = card_red_0
										has_country_flag = card_red_1_one
										has_country_flag = card_red_1_two
										has_country_flag = card_red_2_one
										has_country_flag = card_red_2_two
										has_country_flag = card_red_3_one
										has_country_flag = card_red_3_two
										has_country_flag = card_red_4_one
										has_country_flag = card_red_4_two
										has_country_flag = card_red_5_one
										has_country_flag = card_red_5_two
										has_country_flag = card_red_6_one
										has_country_flag = card_red_6_two
										has_country_flag = card_red_7_one
										has_country_flag = card_red_7_two
										has_country_flag = card_red_8_one
										has_country_flag = card_red_8_two
										has_country_flag = card_red_9_one
										has_country_flag = card_red_9_two
										has_country_flag = card_red_block_one
										has_country_flag = card_red_block_two
										has_country_flag = card_red_reverse_one
										has_country_flag = card_red_reverse_two
										has_country_flag = card_red_plus_one
										has_country_flag = card_red_plus_two
									}
								}
							}
							AND = {
								has_global_flag = blue_middle
								NOT = {
									OR = {
										has_country_flag = card_blue_0
										has_country_flag = card_blue_1_one
										has_country_flag = card_blue_1_two
										has_country_flag = card_blue_2_one
										has_country_flag = card_blue_2_two
										has_country_flag = card_blue_3_one
										has_country_flag = card_blue_3_two
										has_country_flag = card_blue_4_one
										has_country_flag = card_blue_4_two
										has_country_flag = card_blue_5_one
										has_country_flag = card_blue_5_two
										has_country_flag = card_blue_6_one
										has_country_flag = card_blue_6_two
										has_country_flag = card_blue_7_one
										has_country_flag = card_blue_7_two
										has_country_flag = card_blue_8_one
										has_country_flag = card_blue_8_two
										has_country_flag = card_blue_9_one
										has_country_flag = card_blue_9_two
										has_country_flag = card_blue_block_one
										has_country_flag = card_blue_block_two
										has_country_flag = card_blue_reverse_one
										has_country_flag = card_blue_reverse_two
										has_country_flag = card_blue_plus_one
										has_country_flag = card_blue_plus_two
									}
								}
							}
							AND = {
								has_global_flag = yellow_middle
								NOT = {
									OR = {
										has_country_flag = card_yellow_0
										has_country_flag = card_yellow_1_one
										has_country_flag = card_yellow_1_two
										has_country_flag = card_yellow_2_one
										has_country_flag = card_yellow_2_two
										has_country_flag = card_yellow_3_one
										has_country_flag = card_yellow_3_two
										has_country_flag = card_yellow_4_one
										has_country_flag = card_yellow_4_two
										has_country_flag = card_yellow_5_one
										has_country_flag = card_yellow_5_two
										has_country_flag = card_yellow_6_one
										has_country_flag = card_yellow_6_two
										has_country_flag = card_yellow_7_one
										has_country_flag = card_yellow_7_two
										has_country_flag = card_yellow_8_one
										has_country_flag = card_yellow_8_two
										has_country_flag = card_yellow_9_one
										has_country_flag = card_yellow_9_two
										has_country_flag = card_yellow_block_one
										has_country_flag = card_yellow_block_two
										has_country_flag = card_yellow_reverse_one
										has_country_flag = card_yellow_reverse_two
										has_country_flag = card_yellow_plus_one
										has_country_flag = card_yellow_plus_two
									}
								}
							}
							AND = {
								has_global_flag = green_middle
								NOT = {
									OR = {
										has_country_flag = card_green_0
										has_country_flag = card_green_1_one
										has_country_flag = card_green_1_two
										has_country_flag = card_green_2_one
										has_country_flag = card_green_2_two
										has_country_flag = card_green_3_one
										has_country_flag = card_green_3_two
										has_country_flag = card_green_4_one
										has_country_flag = card_green_4_two
										has_country_flag = card_green_5_one
										has_country_flag = card_green_5_two
										has_country_flag = card_green_6_one
										has_country_flag = card_green_6_two
										has_country_flag = card_green_7_one
										has_country_flag = card_green_7_two
										has_country_flag = card_green_8_one
										has_country_flag = card_green_8_two
										has_country_flag = card_green_9_one
										has_country_flag = card_green_9_two
										has_country_flag = card_green_block_one
										has_country_flag = card_green_block_two
										has_country_flag = card_green_reverse_one
										has_country_flag = card_green_reverse_two
										has_country_flag = card_green_plus_one
										has_country_flag = card_green_plus_two
									}
								}
							}
						}
						
					factor = 50000
					}
				}
			}
			
			wild_color_two_p1_click = {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
							AND = {
								has_global_flag = red_middle
								NOT = {
									OR = {
										has_country_flag = card_red_0
										has_country_flag = card_red_1_one
										has_country_flag = card_red_1_two
										has_country_flag = card_red_2_one
										has_country_flag = card_red_2_two
										has_country_flag = card_red_3_one
										has_country_flag = card_red_3_two
										has_country_flag = card_red_4_one
										has_country_flag = card_red_4_two
										has_country_flag = card_red_5_one
										has_country_flag = card_red_5_two
										has_country_flag = card_red_6_one
										has_country_flag = card_red_6_two
										has_country_flag = card_red_7_one
										has_country_flag = card_red_7_two
										has_country_flag = card_red_8_one
										has_country_flag = card_red_8_two
										has_country_flag = card_red_9_one
										has_country_flag = card_red_9_two
										has_country_flag = card_red_block_one
										has_country_flag = card_red_block_two
										has_country_flag = card_red_reverse_one
										has_country_flag = card_red_reverse_two
										has_country_flag = card_red_plus_one
										has_country_flag = card_red_plus_two
									}
								}
							}
							AND = {
								has_global_flag = blue_middle
								NOT = {
									OR = {
										has_country_flag = card_blue_0
										has_country_flag = card_blue_1_one
										has_country_flag = card_blue_1_two
										has_country_flag = card_blue_2_one
										has_country_flag = card_blue_2_two
										has_country_flag = card_blue_3_one
										has_country_flag = card_blue_3_two
										has_country_flag = card_blue_4_one
										has_country_flag = card_blue_4_two
										has_country_flag = card_blue_5_one
										has_country_flag = card_blue_5_two
										has_country_flag = card_blue_6_one
										has_country_flag = card_blue_6_two
										has_country_flag = card_blue_7_one
										has_country_flag = card_blue_7_two
										has_country_flag = card_blue_8_one
										has_country_flag = card_blue_8_two
										has_country_flag = card_blue_9_one
										has_country_flag = card_blue_9_two
										has_country_flag = card_blue_block_one
										has_country_flag = card_blue_block_two
										has_country_flag = card_blue_reverse_one
										has_country_flag = card_blue_reverse_two
										has_country_flag = card_blue_plus_one
										has_country_flag = card_blue_plus_two
									}
								}
							}
							AND = {
								has_global_flag = yellow_middle
								NOT = {
									OR = {
										has_country_flag = card_yellow_0
										has_country_flag = card_yellow_1_one
										has_country_flag = card_yellow_1_two
										has_country_flag = card_yellow_2_one
										has_country_flag = card_yellow_2_two
										has_country_flag = card_yellow_3_one
										has_country_flag = card_yellow_3_two
										has_country_flag = card_yellow_4_one
										has_country_flag = card_yellow_4_two
										has_country_flag = card_yellow_5_one
										has_country_flag = card_yellow_5_two
										has_country_flag = card_yellow_6_one
										has_country_flag = card_yellow_6_two
										has_country_flag = card_yellow_7_one
										has_country_flag = card_yellow_7_two
										has_country_flag = card_yellow_8_one
										has_country_flag = card_yellow_8_two
										has_country_flag = card_yellow_9_one
										has_country_flag = card_yellow_9_two
										has_country_flag = card_yellow_block_one
										has_country_flag = card_yellow_block_two
										has_country_flag = card_yellow_reverse_one
										has_country_flag = card_yellow_reverse_two
										has_country_flag = card_yellow_plus_one
										has_country_flag = card_yellow_plus_two
									}
								}
							}
							AND = {
								has_global_flag = green_middle
								NOT = {
									OR = {
										has_country_flag = card_green_0
										has_country_flag = card_green_1_one
										has_country_flag = card_green_1_two
										has_country_flag = card_green_2_one
										has_country_flag = card_green_2_two
										has_country_flag = card_green_3_one
										has_country_flag = card_green_3_two
										has_country_flag = card_green_4_one
										has_country_flag = card_green_4_two
										has_country_flag = card_green_5_one
										has_country_flag = card_green_5_two
										has_country_flag = card_green_6_one
										has_country_flag = card_green_6_two
										has_country_flag = card_green_7_one
										has_country_flag = card_green_7_two
										has_country_flag = card_green_8_one
										has_country_flag = card_green_8_two
										has_country_flag = card_green_9_one
										has_country_flag = card_green_9_two
										has_country_flag = card_green_block_one
										has_country_flag = card_green_block_two
										has_country_flag = card_green_reverse_one
										has_country_flag = card_green_reverse_two
										has_country_flag = card_green_plus_one
										has_country_flag = card_green_plus_two
									}
								}
							}
						}
						
					factor = 50000
					}
				}
			}
			
			wild_color_three_p1_click = {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
							AND = {
								has_global_flag = red_middle
								NOT = {
									OR = {
										has_country_flag = card_red_0
										has_country_flag = card_red_1_one
										has_country_flag = card_red_1_two
										has_country_flag = card_red_2_one
										has_country_flag = card_red_2_two
										has_country_flag = card_red_3_one
										has_country_flag = card_red_3_two
										has_country_flag = card_red_4_one
										has_country_flag = card_red_4_two
										has_country_flag = card_red_5_one
										has_country_flag = card_red_5_two
										has_country_flag = card_red_6_one
										has_country_flag = card_red_6_two
										has_country_flag = card_red_7_one
										has_country_flag = card_red_7_two
										has_country_flag = card_red_8_one
										has_country_flag = card_red_8_two
										has_country_flag = card_red_9_one
										has_country_flag = card_red_9_two
										has_country_flag = card_red_block_one
										has_country_flag = card_red_block_two
										has_country_flag = card_red_reverse_one
										has_country_flag = card_red_reverse_two
										has_country_flag = card_red_plus_one
										has_country_flag = card_red_plus_two
									}
								}
							}
							AND = {
								has_global_flag = blue_middle
								NOT = {
									OR = {
										has_country_flag = card_blue_0
										has_country_flag = card_blue_1_one
										has_country_flag = card_blue_1_two
										has_country_flag = card_blue_2_one
										has_country_flag = card_blue_2_two
										has_country_flag = card_blue_3_one
										has_country_flag = card_blue_3_two
										has_country_flag = card_blue_4_one
										has_country_flag = card_blue_4_two
										has_country_flag = card_blue_5_one
										has_country_flag = card_blue_5_two
										has_country_flag = card_blue_6_one
										has_country_flag = card_blue_6_two
										has_country_flag = card_blue_7_one
										has_country_flag = card_blue_7_two
										has_country_flag = card_blue_8_one
										has_country_flag = card_blue_8_two
										has_country_flag = card_blue_9_one
										has_country_flag = card_blue_9_two
										has_country_flag = card_blue_block_one
										has_country_flag = card_blue_block_two
										has_country_flag = card_blue_reverse_one
										has_country_flag = card_blue_reverse_two
										has_country_flag = card_blue_plus_one
										has_country_flag = card_blue_plus_two
									}
								}
							}
							AND = {
								has_global_flag = yellow_middle
								NOT = {
									OR = {
										has_country_flag = card_yellow_0
										has_country_flag = card_yellow_1_one
										has_country_flag = card_yellow_1_two
										has_country_flag = card_yellow_2_one
										has_country_flag = card_yellow_2_two
										has_country_flag = card_yellow_3_one
										has_country_flag = card_yellow_3_two
										has_country_flag = card_yellow_4_one
										has_country_flag = card_yellow_4_two
										has_country_flag = card_yellow_5_one
										has_country_flag = card_yellow_5_two
										has_country_flag = card_yellow_6_one
										has_country_flag = card_yellow_6_two
										has_country_flag = card_yellow_7_one
										has_country_flag = card_yellow_7_two
										has_country_flag = card_yellow_8_one
										has_country_flag = card_yellow_8_two
										has_country_flag = card_yellow_9_one
										has_country_flag = card_yellow_9_two
										has_country_flag = card_yellow_block_one
										has_country_flag = card_yellow_block_two
										has_country_flag = card_yellow_reverse_one
										has_country_flag = card_yellow_reverse_two
										has_country_flag = card_yellow_plus_one
										has_country_flag = card_yellow_plus_two
									}
								}
							}
							AND = {
								has_global_flag = green_middle
								NOT = {
									OR = {
										has_country_flag = card_green_0
										has_country_flag = card_green_1_one
										has_country_flag = card_green_1_two
										has_country_flag = card_green_2_one
										has_country_flag = card_green_2_two
										has_country_flag = card_green_3_one
										has_country_flag = card_green_3_two
										has_country_flag = card_green_4_one
										has_country_flag = card_green_4_two
										has_country_flag = card_green_5_one
										has_country_flag = card_green_5_two
										has_country_flag = card_green_6_one
										has_country_flag = card_green_6_two
										has_country_flag = card_green_7_one
										has_country_flag = card_green_7_two
										has_country_flag = card_green_8_one
										has_country_flag = card_green_8_two
										has_country_flag = card_green_9_one
										has_country_flag = card_green_9_two
										has_country_flag = card_green_block_one
										has_country_flag = card_green_block_two
										has_country_flag = card_green_reverse_one
										has_country_flag = card_green_reverse_two
										has_country_flag = card_green_plus_one
										has_country_flag = card_green_plus_two
									}
								}
							}
						}
						
					factor = 50000
					}
				}
			}
			
			wild_color_four_p1_click = {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
							AND = {
								has_global_flag = red_middle
								NOT = {
									OR = {
										has_country_flag = card_red_0
										has_country_flag = card_red_1_one
										has_country_flag = card_red_1_two
										has_country_flag = card_red_2_one
										has_country_flag = card_red_2_two
										has_country_flag = card_red_3_one
										has_country_flag = card_red_3_two
										has_country_flag = card_red_4_one
										has_country_flag = card_red_4_two
										has_country_flag = card_red_5_one
										has_country_flag = card_red_5_two
										has_country_flag = card_red_6_one
										has_country_flag = card_red_6_two
										has_country_flag = card_red_7_one
										has_country_flag = card_red_7_two
										has_country_flag = card_red_8_one
										has_country_flag = card_red_8_two
										has_country_flag = card_red_9_one
										has_country_flag = card_red_9_two
										has_country_flag = card_red_block_one
										has_country_flag = card_red_block_two
										has_country_flag = card_red_reverse_one
										has_country_flag = card_red_reverse_two
										has_country_flag = card_red_plus_one
										has_country_flag = card_red_plus_two
									}
								}
							}
							AND = {
								has_global_flag = blue_middle
								NOT = {
									OR = {
										has_country_flag = card_blue_0
										has_country_flag = card_blue_1_one
										has_country_flag = card_blue_1_two
										has_country_flag = card_blue_2_one
										has_country_flag = card_blue_2_two
										has_country_flag = card_blue_3_one
										has_country_flag = card_blue_3_two
										has_country_flag = card_blue_4_one
										has_country_flag = card_blue_4_two
										has_country_flag = card_blue_5_one
										has_country_flag = card_blue_5_two
										has_country_flag = card_blue_6_one
										has_country_flag = card_blue_6_two
										has_country_flag = card_blue_7_one
										has_country_flag = card_blue_7_two
										has_country_flag = card_blue_8_one
										has_country_flag = card_blue_8_two
										has_country_flag = card_blue_9_one
										has_country_flag = card_blue_9_two
										has_country_flag = card_blue_block_one
										has_country_flag = card_blue_block_two
										has_country_flag = card_blue_reverse_one
										has_country_flag = card_blue_reverse_two
										has_country_flag = card_blue_plus_one
										has_country_flag = card_blue_plus_two
									}
								}
							}
							AND = {
								has_global_flag = yellow_middle
								NOT = {
									OR = {
										has_country_flag = card_yellow_0
										has_country_flag = card_yellow_1_one
										has_country_flag = card_yellow_1_two
										has_country_flag = card_yellow_2_one
										has_country_flag = card_yellow_2_two
										has_country_flag = card_yellow_3_one
										has_country_flag = card_yellow_3_two
										has_country_flag = card_yellow_4_one
										has_country_flag = card_yellow_4_two
										has_country_flag = card_yellow_5_one
										has_country_flag = card_yellow_5_two
										has_country_flag = card_yellow_6_one
										has_country_flag = card_yellow_6_two
										has_country_flag = card_yellow_7_one
										has_country_flag = card_yellow_7_two
										has_country_flag = card_yellow_8_one
										has_country_flag = card_yellow_8_two
										has_country_flag = card_yellow_9_one
										has_country_flag = card_yellow_9_two
										has_country_flag = card_yellow_block_one
										has_country_flag = card_yellow_block_two
										has_country_flag = card_yellow_reverse_one
										has_country_flag = card_yellow_reverse_two
										has_country_flag = card_yellow_plus_one
										has_country_flag = card_yellow_plus_two
									}
								}
							}
							AND = {
								has_global_flag = green_middle
								NOT = {
									OR = {
										has_country_flag = card_green_0
										has_country_flag = card_green_1_one
										has_country_flag = card_green_1_two
										has_country_flag = card_green_2_one
										has_country_flag = card_green_2_two
										has_country_flag = card_green_3_one
										has_country_flag = card_green_3_two
										has_country_flag = card_green_4_one
										has_country_flag = card_green_4_two
										has_country_flag = card_green_5_one
										has_country_flag = card_green_5_two
										has_country_flag = card_green_6_one
										has_country_flag = card_green_6_two
										has_country_flag = card_green_7_one
										has_country_flag = card_green_7_two
										has_country_flag = card_green_8_one
										has_country_flag = card_green_8_two
										has_country_flag = card_green_9_one
										has_country_flag = card_green_9_two
										has_country_flag = card_green_block_one
										has_country_flag = card_green_block_two
										has_country_flag = card_green_reverse_one
										has_country_flag = card_green_reverse_two
										has_country_flag = card_green_plus_one
										has_country_flag = card_green_plus_two
									}
								}
							}
						}
						
					factor = 50000
					}
				}
			}
			
			# WILD PLUS 4
			
			# WILD COLOR CARD
			
			wild_plus_one_p1_click = {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
							has_global_flag = plus_middle	
							has_global_flag = wild_plus_middle							
						}
						
					factor = 999999
					}
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
							has_global_flag = red_middle
							has_global_flag = blue_middle
							has_global_flag = yellow_middle
							has_global_flag = green_middle
						}
						
					factor = 10
					}
				}
			}
			
			wild_plus_two_p1_click = {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
							has_global_flag = plus_middle
							has_global_flag = wild_plus_middle
						}
						
					factor = 999999
					}
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
							has_global_flag = red_middle
							has_global_flag = blue_middle
							has_global_flag = yellow_middle
							has_global_flag = green_middle
						}
						
					factor = 10
					}
				}
			}
			
			wild_plus_three_p1_click = {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
							has_global_flag = plus_middle
							has_global_flag = wild_plus_middle
						}
						
					factor = 999999
					}
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
							has_global_flag = red_middle
							has_global_flag = blue_middle
							has_global_flag = yellow_middle
							has_global_flag = green_middle
						}
						
					factor = 10
					}
				}
			}
			
			wild_plus_four_p1_click = {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
							has_global_flag = plus_middle	
							has_global_flag = wild_plus_middle
						}
						
					factor = 999999
					}
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
							has_global_flag = red_middle
							has_global_flag = blue_middle
							has_global_flag = yellow_middle
							has_global_flag = green_middle
						}
						
					factor = 10
					}
				}
			}
			
			# DECK OF CARDS
		
			deck_of_cards_red_click = {
				ai_will_do = {
					base = 1000
					
				}
			}
			
			deck_of_cards_blue_click = {
				ai_will_do = {
					base = 1000
				}
			}
			
			deck_of_cards_yellow_click = {
				ai_will_do = {
					base = 1000
					
				}
			}
			
			deck_of_cards_green_click = {
				ai_will_do = {
					base = 1000
					
				}
			}
			
			deck_of_cards_wild_click = {
				ai_will_do = {
					base = 1000
					
				}				
			}
			
			#### SINGLE CARDS ####
			
			### RED ###
			
			red_0_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = zero_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_1_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = one_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_1_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = one_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_2_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = two_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_2_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = two_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_3_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = three_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_3_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = three_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_4_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = four_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_4_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = four_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_5_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = five_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_5_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = five_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_6_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = six_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_6_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = six_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_7_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = seven_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_7_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = seven_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_8_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = eight_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_8_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = eight_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_9_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = nine_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_9_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = nine_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_block_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = block_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_block_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = block_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_reverse_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = reverse_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_reverse_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = reverse_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_plus_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = plus_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			red_plus_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = plus_middle
						has_global_flag = red_middle
						}
					factor = 10000
					}
				}	
			}
			
			### BLUE ###
			
			blue_0_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = zero_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_1_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = one_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_1_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = one_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_2_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = two_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_2_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = two_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_3_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = three_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_3_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = three_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_4_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = four_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_4_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = four_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_5_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = five_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_5_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = five_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_6_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = six_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_6_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = six_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_7_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = seven_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_7_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = seven_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_8_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = eight_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_8_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = eight_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_9_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = nine_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_9_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = nine_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_block_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = block_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_block_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = block_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_reverse_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = reverse_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_reverse_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = reverse_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_plus_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = plus_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			blue_plus_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = plus_middle
						has_global_flag = blue_middle
						}
					factor = 10000
					}
				}	
			}
			
			### YELLOW ###
			
			yellow_0_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = zero_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_1_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = one_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_1_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = one_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_2_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = two_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_2_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = two_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_3_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = three_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_3_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = three_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_4_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = four_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_4_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = four_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_5_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = five_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_5_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = five_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_6_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = six_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_6_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = six_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_7_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = seven_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_7_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = seven_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_8_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = eight_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_8_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = eight_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_9_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = nine_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_9_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = nine_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_block_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = block_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_block_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = block_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_reverse_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = reverse_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_reverse_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = reverse_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_plus_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = plus_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			yellow_plus_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = plus_middle
						has_global_flag = yellow_middle
						}
					factor = 10000
					}
				}	
			}
			
			### YELLOW ###
			
			green_0_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = zero_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_1_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = one_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_1_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = one_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_2_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = two_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_2_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = two_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_3_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = three_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_3_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = three_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_4_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = four_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_4_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = four_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_5_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = five_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_5_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = five_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_6_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = six_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_6_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = six_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_7_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = seven_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_7_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = seven_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_8_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = eight_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_8_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = eight_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_9_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = nine_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_9_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = nine_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_block_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = block_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_block_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = block_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_reverse_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = reverse_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_reverse_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = reverse_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_plus_one_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = plus_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			green_plus_two_p1_click =  {
				ai_will_do = {
					base = 1
					
					modifier = { 
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
						has_global_flag = plus_middle
						has_global_flag = green_middle
						}
					factor = 10000
					}
				}	
			}
			
			###########################################
			
		}
	
	    effects = {
		
			wild_color_one_p1_click = {
				
				IF = {
					limit = {
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
							has_global_flag = red_middle
							has_global_flag = blue_middle
							has_global_flag = yellow_middle
							has_global_flag = green_middle
							has_global_flag = wild_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_wild_color_one
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = wild_middle
					set_global_flag = wild_color_middle

					set_global_flag = wild_color_one				
					set_global_flag = player_is_choosing_a_color
					
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
							}
						}
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
							}
						}
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
							}
						}
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
							}
						}
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
							}
						}
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
							}
						}
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}

					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}
			}
			
			wild_color_two_p1_click = {
				
				IF = {
					limit = {
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
							has_global_flag = red_middle
							has_global_flag = blue_middle
							has_global_flag = yellow_middle
							has_global_flag = green_middle
							has_global_flag = wild_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_wild_color_two
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = wild_middle
					set_global_flag = wild_color_middle
					
					set_global_flag = wild_color_two				
					set_global_flag = player_is_choosing_a_color
					
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
							}
						}
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
							}
						}
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
							}
						}
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
							}
						}
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
							}
						}
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
							}
						}
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
					
				}
			}
			
			wild_color_three_p1_click = {
			
				IF = {
					limit = {
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
							has_global_flag = red_middle
							has_global_flag = blue_middle
							has_global_flag = yellow_middle
							has_global_flag = green_middle
							has_global_flag = wild_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_wild_color_three
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = wild_middle
					set_global_flag = wild_color_middle
					
					set_global_flag = wild_color_three			
					set_global_flag = player_is_choosing_a_color
					
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
							}
						}
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
							}
						}
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
							}
						}
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
							}
						}
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
							}
						}
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
							}
						}
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
					
				}
			}
			
			wild_color_four_p1_click = {
				
				IF = {
					limit = {
						NOT = {
							check_variable = {
								global.seven_cards > 0
							}
						}
						OR = {
							has_global_flag = red_middle
							has_global_flag = blue_middle
							has_global_flag = yellow_middle
							has_global_flag = green_middle
							has_global_flag = wild_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_wild_color_four
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = wild_middle
					set_global_flag = wild_color_middle
					
					set_global_flag = wild_color_four		
					set_global_flag = player_is_choosing_a_color
					
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
							}
						}
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
							}
						}
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
							}
						}
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
							}
						}
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
							}
						}
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
							}
						}
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
					
				}
			}
		
			# MIDDLE COLOR CLICK 
			
			color_middle_red_click = {
				clr_global_flag = red_middle
				clr_global_flag = blue_middle
				clr_global_flag = yellow_middle
				clr_global_flag = green_middle
				
				set_global_flag = red_middle
				clr_global_flag = player_is_choosing_a_color
				
				sound_effect = red_sound
				
				# Choosing the queue if clockwise or not				
				IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_1
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_1_turn
					set_global_flag = player_2_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_2
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_2_turn
					set_global_flag = player_3_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_3
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_3_turn
					set_global_flag = player_4_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_4
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_4_turn
					set_global_flag = player_5_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_5
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_5_turn
					set_global_flag = player_6_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_6
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_6_turn
					set_global_flag = player_1_turn
				}
				# Counter clockwise queue
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_1
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_1_turn
					set_global_flag = player_6_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_2
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_2_turn
					set_global_flag = player_1_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_3
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_3_turn
					set_global_flag = player_2_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_4
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_4_turn
					set_global_flag = player_3_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_5
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_5_turn
					set_global_flag = player_4_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_6
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_6_turn
					set_global_flag = player_5_turn
				}
			}
			
			color_middle_blue_click = {
				clr_global_flag = red_middle
				clr_global_flag = blue_middle
				clr_global_flag = yellow_middle
				clr_global_flag = green_middle
				
				set_global_flag = blue_middle
				clr_global_flag = player_is_choosing_a_color
				
				sound_effect = blue_sound
				
				# Choosing the queue if clockwise or not				
				IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_1
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_1_turn
					set_global_flag = player_2_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_2
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_2_turn
					set_global_flag = player_3_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_3
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_3_turn
					set_global_flag = player_4_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_4
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_4_turn
					set_global_flag = player_5_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_5
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_5_turn
					set_global_flag = player_6_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_6
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_6_turn
					set_global_flag = player_1_turn
				}
				# Counter clockwise queue
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_1
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_1_turn
					set_global_flag = player_6_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_2
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_2_turn
					set_global_flag = player_1_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_3
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_3_turn
					set_global_flag = player_2_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_4
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_4_turn
					set_global_flag = player_3_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_5
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_5_turn
					set_global_flag = player_4_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_6
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_6_turn
					set_global_flag = player_5_turn
				}
			}
			
			color_middle_yellow_click = {
				clr_global_flag = red_middle
				clr_global_flag = blue_middle
				clr_global_flag = yellow_middle
				clr_global_flag = green_middle
				
				set_global_flag = yellow_middle
				clr_global_flag = player_is_choosing_a_color
				
				sound_effect = yellow_sound
				
				# Choosing the queue if clockwise or not				
				IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_1
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_1_turn
					set_global_flag = player_2_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_2
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_2_turn
					set_global_flag = player_3_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_3
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_3_turn
					set_global_flag = player_4_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_4
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_4_turn
					set_global_flag = player_5_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_5
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_5_turn
					set_global_flag = player_6_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_6
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_6_turn
					set_global_flag = player_1_turn
				}
				# Counter clockwise queue
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_1
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_1_turn
					set_global_flag = player_6_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_2
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_2_turn
					set_global_flag = player_1_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_3
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_3_turn
					set_global_flag = player_2_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_4
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_4_turn
					set_global_flag = player_3_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_5
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_5_turn
					set_global_flag = player_4_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_6
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_6_turn
					set_global_flag = player_5_turn
				}
			}
			
			color_middle_green_click = {
				clr_global_flag = red_middle
				clr_global_flag = blue_middle
				clr_global_flag = yellow_middle
				clr_global_flag = green_middle
				
				set_global_flag = green_middle
				
				clr_global_flag = player_is_choosing_a_color
				
				sound_effect = green_sound
				
				# Choosing the queue if clockwise or not				
				IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_1
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_1_turn
					set_global_flag = player_2_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_2
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_2_turn
					set_global_flag = player_3_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_3
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_3_turn
					set_global_flag = player_4_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_4
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_4_turn
					set_global_flag = player_5_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_5
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_5_turn
					set_global_flag = player_6_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_6
							has_global_flag = clockwise_queue
						}
					}
					clr_global_flag = player_6_turn
					set_global_flag = player_1_turn
				}
				# Counter clockwise queue
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_1
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_1_turn
					set_global_flag = player_6_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_2
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_2_turn
					set_global_flag = player_1_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_3
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_3_turn
					set_global_flag = player_2_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_4
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_4_turn
					set_global_flag = player_3_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_5
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_5_turn
					set_global_flag = player_4_turn
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_6
							has_global_flag = counter_clockwise_queue
						}
					}
					clr_global_flag = player_6_turn
					set_global_flag = player_5_turn
				}
			}
		
			# BOTTOM CARDS CLICK
			
			# RED #########################################
			
			#########################################################################
			red_0_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = zero_middle
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_0
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = zero_middle
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_1_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = one_middle #
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_1_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = one_middle #
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_1_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = one_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_1_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = one_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_2_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = two_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_2_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = two_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_2_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = two_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_2_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = one_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_3_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = three_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_3_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = three_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_3_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = three_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_3_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = three_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_4_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = four_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_4_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = four_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_4_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = four_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_4_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = four_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_5_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = five_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_5_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = five_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_5_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = five_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_5_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = five_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_6_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = six_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_6_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = six_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_6_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = six_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_6_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = six_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_7_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = seven_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_7_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = seven_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_7_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = seven_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_7_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = seven_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_8_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = eight_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_8_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = eight_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_8_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = eight_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_8_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = eight_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_9_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = nine_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_9_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = nine_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_9_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = nine_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_9_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = nine_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_block_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = block_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_block_one #
					sound_effect = block_sound
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = block_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_block_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = block_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_block_two #
					sound_effect = block_sound
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = block_middle ##
					
					# Choosing the queue if clockwise or not and skipping 1 player cause it's block				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_reverse_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = reverse_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_reverse_one #
					
					# Sound effect !
					sound_effect = reverse_sound
					
					# Reverse !
					
					IF = {
						limit = {
							has_global_flag = clockwise_queue
						}
						clr_global_flag = clockwise_queue
						set_global_flag = counter_clockwise_queue
					}
					ELSE_IF = {
						limit = {
							has_global_flag = counter_clockwise_queue
						}
						clr_global_flag = counter_clockwise_queue
						set_global_flag = clockwise_queue
					}
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = reverse_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_reverse_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = reverse_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_reverse_two #
					
					# Sound effect !
					sound_effect = reverse_sound
					
					# Reverse !
					
					IF = {
						limit = {
							has_global_flag = clockwise_queue
						}
						clr_global_flag = clockwise_queue
						set_global_flag = counter_clockwise_queue
					}
					ELSE_IF = {
						limit = {
							has_global_flag = counter_clockwise_queue
						}
						clr_global_flag = counter_clockwise_queue
						set_global_flag = clockwise_queue
					}					
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = reverse_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_plus_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = plus_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_plus_one #
					sound_effect = plus_two_sound
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = plus_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn

						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
						
						
					}
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			red_plus_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = plus_middle ##
							has_global_flag = red_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_red_plus_two #
					sound_effect = plus_two_sound
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = red_middle
					set_global_flag = plus_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn

						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			# BLUE #########################################
			
			#########################################################################
			blue_0_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = zero_middle
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_0
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = zero_middle
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_1_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = one_middle #
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_1_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = one_middle #
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_1_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = one_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_1_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = one_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_2_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = two_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_2_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = two_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_2_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = two_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_2_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = one_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_3_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = three_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_3_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = three_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_3_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = three_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_3_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = three_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_4_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = four_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_4_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = four_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_4_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = four_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_4_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = four_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_5_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = five_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_5_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = five_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_5_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = five_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_5_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = five_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_6_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = six_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_6_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = six_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_6_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = six_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_6_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = six_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_7_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = seven_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_7_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = seven_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_7_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = seven_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_7_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = seven_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_8_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = eight_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_8_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = eight_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_8_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = eight_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_8_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = eight_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_9_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = nine_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_9_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = nine_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_9_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = nine_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_9_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = nine_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_block_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = block_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_block_one #
					sound_effect = block_sound
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = block_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_block_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = block_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_block_two #
					sound_effect = block_sound
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = block_middle ##
					
					# Choosing the queue if clockwise or not and skipping 1 player cause it's block				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_reverse_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = reverse_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_reverse_one #
					
					# Sound effect !
					sound_effect = reverse_sound
					
					# Reverse !
					
					IF = {
						limit = {
							has_global_flag = clockwise_queue
						}
						clr_global_flag = clockwise_queue
						set_global_flag = counter_clockwise_queue
					}
					ELSE_IF = {
						limit = {
							has_global_flag = counter_clockwise_queue
						}
						clr_global_flag = counter_clockwise_queue
						set_global_flag = clockwise_queue
					}
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = reverse_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_reverse_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = reverse_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_reverse_two #
					
					# Sound effect !
					sound_effect = reverse_sound
					
					# Reverse !
					
					IF = {
						limit = {
							has_global_flag = clockwise_queue
						}
						clr_global_flag = clockwise_queue
						set_global_flag = counter_clockwise_queue
					}
					ELSE_IF = {
						limit = {
							has_global_flag = counter_clockwise_queue
						}
						clr_global_flag = counter_clockwise_queue
						set_global_flag = clockwise_queue
					}					
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = reverse_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_plus_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = plus_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_plus_one #
					sound_effect = plus_two_sound
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = plus_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn

						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			blue_plus_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = plus_middle ##
							has_global_flag = blue_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_blue_plus_two #
					sound_effect = plus_two_sound
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = blue_middle
					set_global_flag = plus_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn

						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			# YELLOW #########################################
			
			#########################################################################
			yellow_0_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = zero_middle
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_0
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = zero_middle
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_1_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = one_middle #
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_1_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = one_middle #
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_1_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = one_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_1_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = one_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_2_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = two_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_2_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = two_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_2_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = two_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_2_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = one_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_3_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = three_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_3_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = three_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_3_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = three_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_3_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = three_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_4_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = four_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_4_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = four_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_4_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = four_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_4_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = four_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_5_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = five_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_5_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = five_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_5_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = five_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_5_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = five_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_6_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = six_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_6_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = six_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_6_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = six_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_6_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = six_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_7_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = seven_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_7_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = seven_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_7_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = seven_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_7_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = seven_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_8_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = eight_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_8_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = eight_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_8_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = eight_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_8_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = eight_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_9_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = nine_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_9_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = nine_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_9_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = nine_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_9_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = nine_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_block_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = block_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_block_one #
					sound_effect = block_sound
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = block_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_block_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = block_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_block_two #
					sound_effect = block_sound
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = block_middle ##
					
					# Choosing the queue if clockwise or not and skipping 1 player cause it's block				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_reverse_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = reverse_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_reverse_one #
					
					# Sound effect !
					sound_effect = reverse_sound
					
					# Reverse !
					
					IF = {
						limit = {
							has_global_flag = clockwise_queue
						}
						clr_global_flag = clockwise_queue
						set_global_flag = counter_clockwise_queue
					}
					ELSE_IF = {
						limit = {
							has_global_flag = counter_clockwise_queue
						}
						clr_global_flag = counter_clockwise_queue
						set_global_flag = clockwise_queue
					}
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = reverse_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_reverse_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = reverse_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_reverse_two #
					
					# Sound effect !
					sound_effect = reverse_sound
					
					# Reverse !
					
					IF = {
						limit = {
							has_global_flag = clockwise_queue
						}
						clr_global_flag = clockwise_queue
						set_global_flag = counter_clockwise_queue
					}
					ELSE_IF = {
						limit = {
							has_global_flag = counter_clockwise_queue
						}
						clr_global_flag = counter_clockwise_queue
						set_global_flag = clockwise_queue
					}					
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = reverse_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_plus_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = plus_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_plus_one #
					sound_effect = plus_two_sound
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = plus_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn

						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			yellow_plus_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = plus_middle ##
							has_global_flag = yellow_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_yellow_plus_two #
					sound_effect = plus_two_sound
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = yellow_middle
					set_global_flag = plus_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn

						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			# GREEN #########################################
			
			#########################################################################
			green_0_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = zero_middle
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_0
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = zero_middle
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_1_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = one_middle #
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_1_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = one_middle #
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_1_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = one_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_1_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = one_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_2_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = two_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_2_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = two_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_2_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = two_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_2_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = one_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_3_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = three_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_3_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = three_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_3_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = three_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_3_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = three_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_4_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = four_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_4_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = four_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_4_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = four_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_4_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = four_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_5_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = five_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_5_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = five_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_5_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = five_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_5_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = five_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_6_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = six_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_6_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = six_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_6_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = six_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_6_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = six_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_7_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = seven_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_7_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = seven_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_7_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = seven_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_7_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = seven_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_8_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = eight_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_8_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = eight_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_8_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = eight_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_8_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = eight_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_9_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = nine_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_9_one #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = nine_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_9_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = nine_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_9_two #
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = nine_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Uno sound effect ############################################
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 1
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 1
										}
									}
								}								
							}
						}
						sound_effect = uno_sound
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_block_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = block_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_block_one #
					sound_effect = block_sound
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = block_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_block_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = block_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_block_two #
					sound_effect = block_sound
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = block_middle ##
					
					# Choosing the queue if clockwise or not and skipping 1 player cause it's block				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_reverse_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = reverse_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_reverse_one #
					
					# Sound effect !
					sound_effect = reverse_sound
					
					# Reverse !
					
					IF = {
						limit = {
							has_global_flag = clockwise_queue
						}
						clr_global_flag = clockwise_queue
						set_global_flag = counter_clockwise_queue
					}
					ELSE_IF = {
						limit = {
							has_global_flag = counter_clockwise_queue
						}
						clr_global_flag = counter_clockwise_queue
						set_global_flag = clockwise_queue
					}
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = reverse_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_reverse_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = reverse_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_reverse_two #
					
					# Sound effect !
					sound_effect = reverse_sound
					
					# Reverse !
					
					IF = {
						limit = {
							has_global_flag = clockwise_queue
						}
						clr_global_flag = clockwise_queue
						set_global_flag = counter_clockwise_queue
					}
					ELSE_IF = {
						limit = {
							has_global_flag = counter_clockwise_queue
						}
						clr_global_flag = counter_clockwise_queue
						set_global_flag = clockwise_queue
					}					
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = reverse_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_plus_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = plus_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_plus_one #
					sound_effect = plus_two_sound
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = plus_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn

						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			green_plus_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = plus_middle ##
							has_global_flag = green_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_green_plus_two #
					sound_effect = plus_two_sound
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = green_middle
					set_global_flag = plus_middle ##
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_2_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_3_turn

						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_4_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_5_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_6_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_1_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_1_turn
						set_global_flag = player_6_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_2_turn
						set_global_flag = player_1_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_3_turn
						set_global_flag = player_2_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_4_turn
						set_global_flag = player_3_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_5_turn
						set_global_flag = player_4_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						clr_global_flag = player_6_turn
						set_global_flag = player_5_turn
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 2 ###
								
								value = 2
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			# PLUS 4 
			
			#########################################################################
			wild_plus_one_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = red_middle
							has_global_flag = blue_middle
							has_global_flag = yellow_middle
							has_global_flag = green_middle
							has_global_flag = wild_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_wild_plus_one #
					sound_effect = plus_four_sound
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = wild_middle
					set_global_flag = wild_plus_middle ##
					
					set_global_flag = wild_plus_one
					set_global_flag = player_is_choosing_a_color
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}

						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			wild_plus_two_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = red_middle
							has_global_flag = blue_middle
							has_global_flag = yellow_middle
							has_global_flag = green_middle
							has_global_flag = wild_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_wild_plus_two #
					sound_effect = plus_four_sound
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = wild_middle
					set_global_flag = wild_plus_middle ##
					
					set_global_flag = wild_plus_two
					set_global_flag = player_is_choosing_a_color
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}

						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			wild_plus_three_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = red_middle
							has_global_flag = blue_middle
							has_global_flag = yellow_middle
							has_global_flag = green_middle
							has_global_flag = wild_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_wild_plus_three #
					sound_effect = plus_four_sound
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = wild_middle
					set_global_flag = wild_plus_middle ##
					
					set_global_flag = wild_plus_three
					set_global_flag = player_is_choosing_a_color
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}

						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			wild_plus_four_p1_click = {
				IF = {
					limit = {
						OR = {
							has_global_flag = red_middle
							has_global_flag = blue_middle
							has_global_flag = yellow_middle
							has_global_flag = green_middle
							has_global_flag = wild_middle
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = player_1_turn
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = player_2_turn
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = player_3_turn
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = player_4_turn
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = player_5_turn
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = player_6_turn
							}
						}
					}
					clr_country_flag = card_wild_plus_four #
					sound_effect = plus_four_sound
					
					clr_global_flag = red_middle
					clr_global_flag = blue_middle
					clr_global_flag = yellow_middle
					clr_global_flag = green_middle
					clr_global_flag = wild_middle
					
					clr_global_flag = zero_middle
					clr_global_flag = one_middle
					clr_global_flag = two_middle
					clr_global_flag = three_middle
					clr_global_flag = four_middle
					clr_global_flag = five_middle
					clr_global_flag = six_middle
					clr_global_flag = seven_middle
					clr_global_flag = eight_middle
					clr_global_flag = nine_middle
					clr_global_flag = block_middle
					clr_global_flag = plus_middle
					clr_global_flag = reverse_middle
					
					clr_global_flag = wild_color_middle
					clr_global_flag = wild_plus_middle
					
					sound_effect = card_dealt_sound
					
					set_global_flag = wild_middle
					set_global_flag = wild_plus_middle
					
					set_global_flag = wild_plus_four
					set_global_flag = player_is_choosing_a_color
					
					# Choosing the queue if clockwise or not				
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = clockwise_queue
							}
						}

						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
						ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					# Counter clockwise queue
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p1_draws_2
							set_global_flag = p6_draws_2
							
							set_global_flag = p6_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p6 = global.num_of_cards_to_draw_p1
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p1 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p6
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_1
									NOT = { has_global_flag = p1_draws_2 }
								}
							}
							set_global_flag = p6_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p6 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p1_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p2_draws_2
							set_global_flag = p1_draws_2
							
							set_global_flag = p1_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p1 = global.num_of_cards_to_draw_p2
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p2 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p1
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_2
									NOT = { has_global_flag = p2_draws_2 }
								}
							}
							set_global_flag = p1_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p1 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p2_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p3_draws_2
							set_global_flag = p2_draws_2
							
							set_global_flag = p2_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p2 = global.num_of_cards_to_draw_p3
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p3 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p2
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_3
									NOT = { has_global_flag = p3_draws_2 }
								}
							}
							set_global_flag = p2_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p2 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p3_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p4_draws_2
							set_global_flag = p3_draws_2
							
							set_global_flag = p3_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p3 = global.num_of_cards_to_draw_p4
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p4 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p3
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_4
									NOT = { has_global_flag = p4_draws_2 }
								}
							}
							set_global_flag = p3_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p3 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p4_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p5_draws_2
							set_global_flag = p4_draws_2
							
							set_global_flag = p4_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p4 = global.num_of_cards_to_draw_p5
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p5 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p4
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_5
									NOT = { has_global_flag = p5_draws_2 }
								}
							}
							set_global_flag = p4_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p4 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p5_num_of_cards
							value = -1
						}
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
								has_global_flag = counter_clockwise_queue
							}
						}
						
						###############################################################################
						### If previous player defended with plus ###  
						############################################# 
						IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
								}
							}
							### Giving plus to next player ###
							clr_global_flag = p6_draws_2
							set_global_flag = p5_draws_2
							
							set_global_flag = p5_chance_to_defend
							
							### Next Player gets sum of previous plusses ###
							
							set_variable = {
								global.num_of_cards_to_draw_p5 = global.num_of_cards_to_draw_p6
							}
							
							# Player who defended from plus #
							set_variable = {
								global.num_of_cards_to_draw_p6 = 0
							}
							
							add_to_variable = {
								
								var = global.num_of_cards_to_draw_p5
								
								### Sums the additional plus 4 ###
								
								value = 4
							}
						}						
						#####################################
						### If it's the first plus placed ###
						#####################################
						ELSE_IF = {
							limit = {
								AND = {
									has_country_flag = this_is_player_6
									NOT = { has_global_flag = p6_draws_2 }
								}
							}
							set_global_flag = p5_draws_2
							set_variable = {
								global.num_of_cards_to_draw_p5 = 2
							}
						}
						###############################################################################
						
						add_to_variable = {
							var = global.p6_num_of_cards
							value = -1
						}
					}
					#### Ending the game ####
					
					IF = {
						limit = {
							ROOT = {
								NOT = {
									check_variable = {
										global.seven_cards > 0
									}
								}
								OR = {
									AND = {
										has_country_flag = this_is_player_1								
										check_variable = {
											global.p1_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_2						
										check_variable = {
											global.p2_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_3						
										check_variable = {
											global.p3_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_4						
										check_variable = {
											global.p4_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_5						
										check_variable = {
											global.p5_num_of_cards = 0
										}
									}
									AND = {
										has_country_flag = this_is_player_6						
										check_variable = {
											global.p6_num_of_cards = 0
										}
									}
								}								
							}
						}
						every_country = {
							country_event = uno.1
						}
					}
					##################################################################
				}					
			} 
			#########################################################################
			
			
			############################################				
			deck_of_cards_red_click = {
			
				add_to_variable = {
					var = global.seven_cards
					value = -1
				}
				
				clr_global_flag = deck_of_red_cards
				sound_effect = draw_card_sound
				
				add_to_variable = {
					var = global.num_of_all_cards
					value = -1
				}
				add_to_variable = {
					var = global.num_of_red_cards
					value = -1
				}
				
				# Seven First Cards #
				IF = {
					limit = {
						OR = {
							check_variable = {
								seven_first_cards = 6
							}
							check_variable = {
								seven_first_cards = 5
							}
							check_variable = {
								seven_first_cards = 4
							}
							check_variable = {
								seven_first_cards = 3
							}
							check_variable = {
								seven_first_cards = 2
							}
							check_variable = {
								seven_first_cards = 1
							}
						}						
					}										
					
					add_to_variable = {
						var = seven_first_cards
						value = -1
					}
					
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
							}
						}
						add_to_variable = {
							var = global.p1_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
							}
						}
						add_to_variable = {
							var = global.p2_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
							}
						}
						add_to_variable = {
							var = global.p3_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
							}
						}
						add_to_variable = {
							var = global.p4_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
							}
						}
						add_to_variable = {
							var = global.p5_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
							}
						}
						add_to_variable = {
							var = global.p6_num_of_cards
							value = 1
						}
					}					
				}
				
				# If player got plus 2 or plus 4 ###############################
				
				ELSE_IF = {
					limit = {
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								check_variable = {
									global.num_of_cards_to_draw_p1 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_2
								check_variable = {
									global.num_of_cards_to_draw_p2 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_3
								check_variable = {
									global.num_of_cards_to_draw_p3 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_4
								check_variable = {
									global.num_of_cards_to_draw_p4 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_5
								check_variable = {
									global.num_of_cards_to_draw_p5 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_6
								check_variable = {
									global.num_of_cards_to_draw_p6 > 1
								}
							}
						}						
					}
					
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
							}
						}
						add_to_variable = {
							var = global.p1_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p1
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
							}
						}
						add_to_variable = {
							var = global.p2_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p2
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
							}
						}
						add_to_variable = {
							var = global.p3_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p3
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
							}
						}
						add_to_variable = {
							var = global.p4_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p4
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
							}
						}
						add_to_variable = {
							var = global.p5_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p5
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
							}
						}
						add_to_variable = {
							var = global.p6_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p6
							value = -1
						}
					}					
				}				
				
				# Choosing the queue if clockwise or not				
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_1
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 1
								}								
							}
						}
					}
					clr_global_flag = player_1_turn
					set_global_flag = player_2_turn
					add_to_variable = {
						var = global.p1_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_1
							check_variable = {
								global.num_of_cards_to_draw_p1 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p1 = 0 }
					}		
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_2
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 1
								}								
							}
						}
					}
					clr_global_flag = player_2_turn
					set_global_flag = player_3_turn
					add_to_variable = {
						var = global.p2_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_2
							check_variable = {
								global.num_of_cards_to_draw_p2 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p2 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_3
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 1
								}								
							}
						}
					}
					clr_global_flag = player_3_turn
					set_global_flag = player_4_turn
					add_to_variable = {
						var = global.p3_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_3
							check_variable = {
								global.num_of_cards_to_draw_p3 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p3 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_4
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 1
								}								
							}
						}
					}
					clr_global_flag = player_4_turn
					set_global_flag = player_5_turn
					add_to_variable = {
						var = global.p4_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_4
							check_variable = {
								global.num_of_cards_to_draw_p4 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p4 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_5
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 1
								}								
							}
						}
					}
					clr_global_flag = player_5_turn
					set_global_flag = player_6_turn
					add_to_variable = {
						var = global.p5_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_5
							check_variable = {
								global.num_of_cards_to_draw_p5 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p5 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_6
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 1
								}								
							}
						}
					}
					clr_global_flag = player_6_turn
					set_global_flag = player_1_turn
					add_to_variable = {
						var = global.p6_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_6
							check_variable = {
								global.num_of_cards_to_draw_p6 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p6 = 0 }
					}
				}
				# Counter clockwise queue
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_1
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 1
								}								
							}
						}
					}
					clr_global_flag = player_1_turn
					set_global_flag = player_6_turn
					add_to_variable = {
						var = global.p1_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_1
							check_variable = {
								global.num_of_cards_to_draw_p1 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p1 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_2
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 1
								}								
							}
						}
					}
					clr_global_flag = player_2_turn
					set_global_flag = player_1_turn
					add_to_variable = {
						var = global.p2_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_2
							check_variable = {
								global.num_of_cards_to_draw_p2 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p2 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_3
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 1
								}								
							}
						}
					}
					clr_global_flag = player_3_turn
					set_global_flag = player_2_turn
					add_to_variable = {
						var = global.p3_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_3
							check_variable = {
								global.num_of_cards_to_draw_p3 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p3 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_4
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 1
								}								
							}
						}
					}
					clr_global_flag = player_4_turn
					set_global_flag = player_3_turn
					add_to_variable = {
						var = global.p4_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_4
							check_variable = {
								global.num_of_cards_to_draw_p4 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p4 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_5
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 1
								}								
							}
						}
					}
					clr_global_flag = player_5_turn
					set_global_flag = player_4_turn
					add_to_variable = {
						var = global.p5_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_5
							check_variable = {
								global.num_of_cards_to_draw_p5 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p5 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_6
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 1
								}								
							}
						}
					}
					clr_global_flag = player_6_turn
					set_global_flag = player_5_turn
					add_to_variable = {
						var = global.p6_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_6
							check_variable = {
								global.num_of_cards_to_draw_p6 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p6 = 0 }
					}
				}
				
				random_list = {
					global.red_0 = {
						set_country_flag = card_red_0
						set_variable = { global.red_0 = 0 }
					}
					
					global.red_1_one = {
						set_country_flag = card_red_1_one
						set_variable = { global.red_1_one = 0 }
					}
					
					global.red_1_two = {
						set_country_flag = card_red_1_two
						set_variable = { global.red_1_two = 0 }
					}
					
					global.red_2_one = {
						set_country_flag = card_red_2_one
						set_variable = { global.red_2_one = 0 }
					}
					
					global.red_2_two = {
						set_country_flag = card_red_2_two
						set_variable = { global.red_2_two = 0 }
					}
					
					global.red_3_one = {
						set_country_flag = card_red_3_one
						set_variable = { global.red_3_one = 0 }
					}
					
					global.red_3_two = {
						set_country_flag = card_red_3_two
						set_variable = { global.red_3_two = 0 }
					}
					
					global.red_4_one = {
						set_country_flag = card_red_4_one
						set_variable = { global.red_4_one = 0 }
					}
					
					global.red_4_two = {
						set_country_flag = card_red_4_two
						set_variable = { global.red_4_two = 0 }
					}
					
					global.red_5_one = {
						set_country_flag = card_red_5_one
						set_variable = { global.red_5_one = 0 }
					}
					
					global.red_5_two = {
						set_country_flag = card_red_5_two
						set_variable = { global.red_5_two = 0 }
					}
					
					global.red_6_one = {
						set_country_flag = card_red_6_one
						set_variable = { global.red_6_one = 0 }
					}
					
					global.red_6_two = {
						set_country_flag = card_red_6_two
						set_variable = { global.red_6_two = 0 }
					}
					
					global.red_7_one = {
						set_country_flag = card_red_7_one
						set_variable = { global.red_7_one = 0 }
					}
					
					global.red_7_two = {
						set_country_flag = card_red_7_two
						set_variable = { global.red_7_two = 0 }
					}
					
					global.red_8_one = {
						set_country_flag = card_red_8_one
						set_variable = { global.red_8_one = 0 }
					}
					
					global.red_8_two = {
						set_country_flag = card_red_8_two
						set_variable = { global.red_8_two = 0 }
					}
					
					global.red_9_one = {
						set_country_flag = card_red_9_one
						set_variable = { global.red_9_one = 0 }
					}
					
					global.red_9_two = {
						set_country_flag = card_red_9_two
						set_variable = { global.red_9_two = 0 }
					}
					
					global.red_block_one = {
						set_country_flag = card_red_block_one
						set_variable = { global.red_block_one = 0 }
					}
					
					global.red_block_two = {
						set_country_flag = card_red_block_two
						set_variable = { global.red_block_two = 0 }
					}
					
					global.red_reverse_one = {
						set_country_flag = card_red_reverse_one
						set_variable = { global.red_reverse_one = 0 }
					}
						
					global.red_reverse_two = {
						set_country_flag = card_red_reverse_two
						set_variable = { global.red_reverse_two = 0 }
					}
					
					global.red_plus_one = {
						set_country_flag = card_red_plus_one
						set_variable = { global.red_plus_one = 0 }
					}
					
					global.red_plus_two = {
						set_country_flag = card_red_plus_two
						set_variable = { global.red_plus_two = 0 }
					}
				}
				
				
				
				IF = {
					limit = {
						AND = {
							has_global_flag = p1_chance_to_defend
							has_country_flag = this_is_player_1
						}						
					}
					clr_global_flag = p1_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p2_chance_to_defend
							has_country_flag = this_is_player_2
						}						
					}
					clr_global_flag = p2_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p3_chance_to_defend
							has_country_flag = this_is_player_3
						}						
					}
					clr_global_flag = p3_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p4_chance_to_defend
							has_country_flag = this_is_player_4
						}						
					}
					clr_global_flag = p4_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p5_chance_to_defend
							has_country_flag = this_is_player_5
						}						
					}
					clr_global_flag = p5_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p6_chance_to_defend
							has_country_flag = this_is_player_6
						}						
					}
					clr_global_flag = p6_chance_to_defend
				}
				
				random_list = {
					global.num_of_red_cards = {
						set_global_flag = deck_of_red_cards
					}
					global.num_of_blue_cards = {
						set_global_flag = deck_of_blue_cards
					}
					global.num_of_yellow_cards = {
						set_global_flag = deck_of_yellow_cards
					}
					global.num_of_green_cards = {
						set_global_flag = deck_of_green_cards					
					}
					global.num_of_wild_cards = {
						set_global_flag = deck_of_wild_cards					
					}
				}
			}
			
			deck_of_cards_blue_click = {
			
				add_to_variable = {
					var = global.seven_cards
					value = -1
				}
				
				clr_global_flag = deck_of_blue_cards
				sound_effect = draw_card_sound
				
				add_to_variable = {
					var = global.num_of_all_cards
					value = -1
				}
				add_to_variable = {
					var = global.num_of_blue_cards
					value = -1
				}
				
				# Seven First Cards #
				IF = {
					limit = {
						OR = {
							check_variable = {
								seven_first_cards = 6
							}
							check_variable = {
								seven_first_cards = 5
							}
							check_variable = {
								seven_first_cards = 4
							}
							check_variable = {
								seven_first_cards = 3
							}
							check_variable = {
								seven_first_cards = 2
							}
							check_variable = {
								seven_first_cards = 1
							}
						}						
					}										
					
					add_to_variable = {
						var = seven_first_cards
						value = -1
					}
					
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
							}
						}
						add_to_variable = {
							var = global.p1_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
							}
						}
						add_to_variable = {
							var = global.p2_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
							}
						}
						add_to_variable = {
							var = global.p3_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
							}
						}
						add_to_variable = {
							var = global.p4_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
							}
						}
						add_to_variable = {
							var = global.p5_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
							}
						}
						add_to_variable = {
							var = global.p6_num_of_cards
							value = 1
						}
					}					
				}
				
				# If player got plus 2 or plus 4 ###############################
				
				ELSE_IF = {
					limit = {
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								check_variable = {
									global.num_of_cards_to_draw_p1 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_2
								check_variable = {
									global.num_of_cards_to_draw_p2 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_3
								check_variable = {
									global.num_of_cards_to_draw_p3 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_4
								check_variable = {
									global.num_of_cards_to_draw_p4 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_5
								check_variable = {
									global.num_of_cards_to_draw_p5 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_6
								check_variable = {
									global.num_of_cards_to_draw_p6 > 1
								}
							}
						}						
					}
					
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
							}
						}
						add_to_variable = {
							var = global.p1_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p1
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
							}
						}
						add_to_variable = {
							var = global.p2_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p2
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
							}
						}
						add_to_variable = {
							var = global.p3_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p3
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
							}
						}
						add_to_variable = {
							var = global.p4_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p4
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
							}
						}
						add_to_variable = {
							var = global.p5_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p5
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
							}
						}
						add_to_variable = {
							var = global.p6_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p6
							value = -1
						}
					}					
				}				
				
				# Choosing the queue if clockwise or not				
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_1
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 1
								}								
							}
						}
					}
					clr_global_flag = player_1_turn
					set_global_flag = player_2_turn
					add_to_variable = {
						var = global.p1_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_1
							check_variable = {
								global.num_of_cards_to_draw_p1 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p1 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_2
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 1
								}								
							}
						}
					}
					clr_global_flag = player_2_turn
					set_global_flag = player_3_turn
					add_to_variable = {
						var = global.p2_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_2
							check_variable = {
								global.num_of_cards_to_draw_p2 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p2 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_3
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 1
								}								
							}
						}
					}
					clr_global_flag = player_3_turn
					set_global_flag = player_4_turn
					add_to_variable = {
						var = global.p3_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_3
							check_variable = {
								global.num_of_cards_to_draw_p3 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p3 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_4
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 1
								}								
							}
						}
					}
					clr_global_flag = player_4_turn
					set_global_flag = player_5_turn
					add_to_variable = {
						var = global.p4_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_4
							check_variable = {
								global.num_of_cards_to_draw_p4 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p4 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_5
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 1
								}								
							}
						}
					}
					clr_global_flag = player_5_turn
					set_global_flag = player_6_turn
					add_to_variable = {
						var = global.p5_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_5
							check_variable = {
								global.num_of_cards_to_draw_p5 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p5 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_6
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 1
								}								
							}
						}
					}
					clr_global_flag = player_6_turn
					set_global_flag = player_1_turn
					add_to_variable = {
						var = global.p6_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_6
							check_variable = {
								global.num_of_cards_to_draw_p6 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p6 = 0 }
					}
				}
				# Counter clockwise queue
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_1
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 1
								}								
							}
						}
					}
					clr_global_flag = player_1_turn
					set_global_flag = player_6_turn
					add_to_variable = {
						var = global.p1_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_1
							check_variable = {
								global.num_of_cards_to_draw_p1 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p1 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_2
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 1
								}								
							}
						}
					}
					clr_global_flag = player_2_turn
					set_global_flag = player_1_turn
					add_to_variable = {
						var = global.p2_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_2
							check_variable = {
								global.num_of_cards_to_draw_p2 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p2 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_3
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 1
								}								
							}
						}
					}
					clr_global_flag = player_3_turn
					set_global_flag = player_2_turn
					add_to_variable = {
						var = global.p3_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_3
							check_variable = {
								global.num_of_cards_to_draw_p3 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p3 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_4
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 1
								}								
							}
						}
					}
					clr_global_flag = player_4_turn
					set_global_flag = player_3_turn
					add_to_variable = {
						var = global.p4_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_4
							check_variable = {
								global.num_of_cards_to_draw_p4 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p4 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_5
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 1
								}								
							}
						}
					}
					clr_global_flag = player_5_turn
					set_global_flag = player_4_turn
					add_to_variable = {
						var = global.p5_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_5
							check_variable = {
								global.num_of_cards_to_draw_p5 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p5 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_6
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 1
								}								
							}
						}
					}
					clr_global_flag = player_6_turn
					set_global_flag = player_5_turn
					add_to_variable = {
						var = global.p6_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_6
							check_variable = {
								global.num_of_cards_to_draw_p6 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p6 = 0 }
					}
				}
				
				random_list = {
					global.blue_0 = {
						set_country_flag = card_blue_0
						set_variable = { global.blue_0 = 0 }
					}
					
					global.blue_1_one = {
						set_country_flag = card_blue_1_one
						set_variable = { global.blue_1_one = 0 }
					}
					
					global.blue_1_two = {
						set_country_flag = card_blue_1_two
						set_variable = { global.blue_1_two = 0 }
					}
					
					global.blue_2_one = {
						set_country_flag = card_blue_2_one
						set_variable = { global.blue_2_one = 0 }
					}
					
					global.blue_2_two = {
						set_country_flag = card_blue_2_two
						set_variable = { global.blue_2_two = 0 }
					}
					
					global.blue_3_one = {
						set_country_flag = card_blue_3_one
						set_variable = { global.blue_3_one = 0 }
					}
					
					global.blue_3_two = {
						set_country_flag = card_blue_3_two
						set_variable = { global.blue_3_two = 0 }
					}
					
					global.blue_4_one = {
						set_country_flag = card_blue_4_one
						set_variable = { global.blue_4_one = 0 }
					}
					
					global.blue_4_two = {
						set_country_flag = card_blue_4_two
						set_variable = { global.blue_4_two = 0 }
					}
					
					global.blue_5_one = {
						set_country_flag = card_blue_5_one
						set_variable = { global.blue_5_one = 0 }
					}
					
					global.blue_5_two = {
						set_country_flag = card_blue_5_two
						set_variable = { global.blue_5_two = 0 }
					}
					
					global.blue_6_one = {
						set_country_flag = card_blue_6_one
						set_variable = { global.blue_6_one = 0 }
					}
					
					global.blue_6_two = {
						set_country_flag = card_blue_6_two
						set_variable = { global.blue_6_two = 0 }
					}
					
					global.blue_7_one = {
						set_country_flag = card_blue_7_one
						set_variable = { global.blue_7_one = 0 }
					}
					
					global.blue_7_two = {
						set_country_flag = card_blue_7_two
						set_variable = { global.blue_7_two = 0 }
					}
					
					global.blue_8_one = {
						set_country_flag = card_blue_8_one
						set_variable = { global.blue_8_one = 0 }
					}
					
					global.blue_8_two = {
						set_country_flag = card_blue_8_two
						set_variable = { global.blue_8_two = 0 }
					}
					
					global.blue_9_one = {
						set_country_flag = card_blue_9_one
						set_variable = { global.blue_9_one = 0 }
					}
					
					global.blue_9_two = {
						set_country_flag = card_blue_9_two
						set_variable = { global.blue_9_two = 0 }
					}
					
					global.blue_block_one = {
						set_country_flag = card_blue_block_one
						set_variable = { global.blue_block_one = 0 }
					}
					
					global.blue_block_two = {
						set_country_flag = card_blue_block_two
						set_variable = { global.blue_block_two = 0 }
					}
					
					global.blue_reverse_one = {
						set_country_flag = card_blue_reverse_one
						set_variable = { global.blue_reverse_one = 0 }
					}
						
					global.blue_reverse_two = {
						set_country_flag = card_blue_reverse_two
						set_variable = { global.blue_reverse_two = 0 }
					}
					
					global.blue_plus_one = {
						set_country_flag = card_blue_plus_one
						set_variable = { global.blue_plus_one = 0 }
					}
					
					global.blue_plus_two = {
						set_country_flag = card_blue_plus_two
						set_variable = { global.blue_plus_two = 0 }
					}
				}
				
				
				
				IF = {
					limit = {
						AND = {
							has_global_flag = p1_chance_to_defend
							has_country_flag = this_is_player_1
						}						
					}
					clr_global_flag = p1_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p2_chance_to_defend
							has_country_flag = this_is_player_2
						}						
					}
					clr_global_flag = p2_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p3_chance_to_defend
							has_country_flag = this_is_player_3
						}						
					}
					clr_global_flag = p3_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p4_chance_to_defend
							has_country_flag = this_is_player_4
						}						
					}
					clr_global_flag = p4_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p5_chance_to_defend
							has_country_flag = this_is_player_5
						}						
					}
					clr_global_flag = p5_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p6_chance_to_defend
							has_country_flag = this_is_player_6
						}						
					}
					clr_global_flag = p6_chance_to_defend
				}
				
				random_list = {
					global.num_of_red_cards = {
						set_global_flag = deck_of_red_cards
					}
					global.num_of_blue_cards = {
						set_global_flag = deck_of_blue_cards
					}
					global.num_of_yellow_cards = {
						set_global_flag = deck_of_yellow_cards
					}
					global.num_of_green_cards = {
						set_global_flag = deck_of_green_cards					
					}
					global.num_of_wild_cards = {
						set_global_flag = deck_of_wild_cards					
					}
				}
			}
			
			deck_of_cards_yellow_click = {
			
				add_to_variable = {
					var = global.seven_cards
					value = -1
				}
				
				clr_global_flag = deck_of_yellow_cards
				sound_effect = draw_card_sound
				
				add_to_variable = {
					var = global.num_of_all_cards
					value = -1
				}
				add_to_variable = {
					var = global.num_of_yellow_cards
					value = -1
				}
				
				# Seven First Cards #
				IF = {
					limit = {
						OR = {
							check_variable = {
								seven_first_cards = 6
							}
							check_variable = {
								seven_first_cards = 5
							}
							check_variable = {
								seven_first_cards = 4
							}
							check_variable = {
								seven_first_cards = 3
							}
							check_variable = {
								seven_first_cards = 2
							}
							check_variable = {
								seven_first_cards = 1
							}
						}						
					}										
					
					add_to_variable = {
						var = seven_first_cards
						value = -1
					}
					
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
							}
						}
						add_to_variable = {
							var = global.p1_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
							}
						}
						add_to_variable = {
							var = global.p2_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
							}
						}
						add_to_variable = {
							var = global.p3_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
							}
						}
						add_to_variable = {
							var = global.p4_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
							}
						}
						add_to_variable = {
							var = global.p5_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
							}
						}
						add_to_variable = {
							var = global.p6_num_of_cards
							value = 1
						}
					}					
				}
				
				# If player got plus 2 or plus 4 ###############################
				
				ELSE_IF = {
					limit = {
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								check_variable = {
									global.num_of_cards_to_draw_p1 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_2
								check_variable = {
									global.num_of_cards_to_draw_p2 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_3
								check_variable = {
									global.num_of_cards_to_draw_p3 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_4
								check_variable = {
									global.num_of_cards_to_draw_p4 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_5
								check_variable = {
									global.num_of_cards_to_draw_p5 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_6
								check_variable = {
									global.num_of_cards_to_draw_p6 > 1
								}
							}
						}						
					}
					
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
							}
						}
						add_to_variable = {
							var = global.p1_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p1
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
							}
						}
						add_to_variable = {
							var = global.p2_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p2
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
							}
						}
						add_to_variable = {
							var = global.p3_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p3
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
							}
						}
						add_to_variable = {
							var = global.p4_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p4
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
							}
						}
						add_to_variable = {
							var = global.p5_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p5
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
							}
						}
						add_to_variable = {
							var = global.p6_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p6
							value = -1
						}
					}					
				}				
				
				# Choosing the queue if clockwise or not				
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_1
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 1
								}								
							}
						}
					}
					clr_global_flag = player_1_turn
					set_global_flag = player_2_turn
					add_to_variable = {
						var = global.p1_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_1
							check_variable = {
								global.num_of_cards_to_draw_p1 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p1 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_2
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 1
								}								
							}
						}
					}
					clr_global_flag = player_2_turn
					set_global_flag = player_3_turn
					add_to_variable = {
						var = global.p2_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_2
							check_variable = {
								global.num_of_cards_to_draw_p2 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p2 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_3
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 1
								}								
							}
						}
					}
					clr_global_flag = player_3_turn
					set_global_flag = player_4_turn
					add_to_variable = {
						var = global.p3_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_3
							check_variable = {
								global.num_of_cards_to_draw_p3 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p3 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_4
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 1
								}								
							}
						}
					}
					clr_global_flag = player_4_turn
					set_global_flag = player_5_turn
					add_to_variable = {
						var = global.p4_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_4
							check_variable = {
								global.num_of_cards_to_draw_p4 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p4 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_5
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 1
								}								
							}
						}
					}
					clr_global_flag = player_5_turn
					set_global_flag = player_6_turn
					add_to_variable = {
						var = global.p5_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_5
							check_variable = {
								global.num_of_cards_to_draw_p5 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p5 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_6
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 1
								}								
							}
						}
					}
					clr_global_flag = player_6_turn
					set_global_flag = player_1_turn
					add_to_variable = {
						var = global.p6_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_6
							check_variable = {
								global.num_of_cards_to_draw_p6 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p6 = 0 }
					}
				}
				# Counter clockwise queue
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_1
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 1
								}								
							}
						}
					}
					clr_global_flag = player_1_turn
					set_global_flag = player_6_turn
					add_to_variable = {
						var = global.p1_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_1
							check_variable = {
								global.num_of_cards_to_draw_p1 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p1 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_2
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 1
								}								
							}
						}
					}
					clr_global_flag = player_2_turn
					set_global_flag = player_1_turn
					add_to_variable = {
						var = global.p2_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_2
							check_variable = {
								global.num_of_cards_to_draw_p2 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p2 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_3
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 1
								}								
							}
						}
					}
					clr_global_flag = player_3_turn
					set_global_flag = player_2_turn
					add_to_variable = {
						var = global.p3_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_3
							check_variable = {
								global.num_of_cards_to_draw_p3 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p3 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_4
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 1
								}								
							}
						}
					}
					clr_global_flag = player_4_turn
					set_global_flag = player_3_turn
					add_to_variable = {
						var = global.p4_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_4
							check_variable = {
								global.num_of_cards_to_draw_p4 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p4 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_5
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 1
								}								
							}
						}
					}
					clr_global_flag = player_5_turn
					set_global_flag = player_4_turn
					add_to_variable = {
						var = global.p5_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_5
							check_variable = {
								global.num_of_cards_to_draw_p5 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p5 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_6
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 1
								}								
							}
						}
					}
					clr_global_flag = player_6_turn
					set_global_flag = player_5_turn
					add_to_variable = {
						var = global.p6_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_6
							check_variable = {
								global.num_of_cards_to_draw_p6 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p6 = 0 }
					}
				}
				
				random_list = {
					global.yellow_0 = {
						set_country_flag = card_yellow_0
						set_variable = { global.yellow_0 = 0 }
					}
					
					global.yellow_1_one = {
						set_country_flag = card_yellow_1_one
						set_variable = { global.yellow_1_one = 0 }
					}
					
					global.yellow_1_two = {
						set_country_flag = card_yellow_1_two
						set_variable = { global.yellow_1_two = 0 }
					}
					
					global.yellow_2_one = {
						set_country_flag = card_yellow_2_one
						set_variable = { global.yellow_2_one = 0 }
					}
					
					global.yellow_2_two = {
						set_country_flag = card_yellow_2_two
						set_variable = { global.yellow_2_two = 0 }
					}
					
					global.yellow_3_one = {
						set_country_flag = card_yellow_3_one
						set_variable = { global.yellow_3_one = 0 }
					}
					
					global.yellow_3_two = {
						set_country_flag = card_yellow_3_two
						set_variable = { global.yellow_3_two = 0 }
					}
					
					global.yellow_4_one = {
						set_country_flag = card_yellow_4_one
						set_variable = { global.yellow_4_one = 0 }
					}
					
					global.yellow_4_two = {
						set_country_flag = card_yellow_4_two
						set_variable = { global.yellow_4_two = 0 }
					}
					
					global.yellow_5_one = {
						set_country_flag = card_yellow_5_one
						set_variable = { global.yellow_5_one = 0 }
					}
					
					global.yellow_5_two = {
						set_country_flag = card_yellow_5_two
						set_variable = { global.yellow_5_two = 0 }
					}
					
					global.yellow_6_one = {
						set_country_flag = card_yellow_6_one
						set_variable = { global.yellow_6_one = 0 }
					}
					
					global.yellow_6_two = {
						set_country_flag = card_yellow_6_two
						set_variable = { global.yellow_6_two = 0 }
					}
					
					global.yellow_7_one = {
						set_country_flag = card_yellow_7_one
						set_variable = { global.yellow_7_one = 0 }
					}
					
					global.yellow_7_two = {
						set_country_flag = card_yellow_7_two
						set_variable = { global.yellow_7_two = 0 }
					}
					
					global.yellow_8_one = {
						set_country_flag = card_yellow_8_one
						set_variable = { global.yellow_8_one = 0 }
					}
					
					global.yellow_8_two = {
						set_country_flag = card_yellow_8_two
						set_variable = { global.yellow_8_two = 0 }
					}
					
					global.yellow_9_one = {
						set_country_flag = card_yellow_9_one
						set_variable = { global.yellow_9_one = 0 }
					}
					
					global.yellow_9_two = {
						set_country_flag = card_yellow_9_two
						set_variable = { global.yellow_9_two = 0 }
					}
					
					global.yellow_block_one = {
						set_country_flag = card_yellow_block_one
						set_variable = { global.yellow_block_one = 0 }
					}
					
					global.yellow_block_two = {
						set_country_flag = card_yellow_block_two
						set_variable = { global.yellow_block_two = 0 }
					}
					
					global.yellow_reverse_one = {
						set_country_flag = card_yellow_reverse_one
						set_variable = { global.yellow_reverse_one = 0 }
					}
						
					global.yellow_reverse_two = {
						set_country_flag = card_yellow_reverse_two
						set_variable = { global.yellow_reverse_two = 0 }
					}
					
					global.yellow_plus_one = {
						set_country_flag = card_yellow_plus_one
						set_variable = { global.yellow_plus_one = 0 }
					}
					
					global.yellow_plus_two = {
						set_country_flag = card_yellow_plus_two
						set_variable = { global.yellow_plus_two = 0 }
					}
				}
				
				
				
				IF = {
					limit = {
						AND = {
							has_global_flag = p1_chance_to_defend
							has_country_flag = this_is_player_1
						}						
					}
					clr_global_flag = p1_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p2_chance_to_defend
							has_country_flag = this_is_player_2
						}						
					}
					clr_global_flag = p2_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p3_chance_to_defend
							has_country_flag = this_is_player_3
						}						
					}
					clr_global_flag = p3_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p4_chance_to_defend
							has_country_flag = this_is_player_4
						}						
					}
					clr_global_flag = p4_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p5_chance_to_defend
							has_country_flag = this_is_player_5
						}						
					}
					clr_global_flag = p5_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p6_chance_to_defend
							has_country_flag = this_is_player_6
						}						
					}
					clr_global_flag = p6_chance_to_defend
				}
				
				random_list = {
					global.num_of_red_cards = {
						set_global_flag = deck_of_red_cards
					}
					global.num_of_blue_cards = {
						set_global_flag = deck_of_blue_cards
					}
					global.num_of_yellow_cards = {
						set_global_flag = deck_of_yellow_cards
					}
					global.num_of_green_cards = {
						set_global_flag = deck_of_green_cards					
					}
					global.num_of_wild_cards = {
						set_global_flag = deck_of_wild_cards					
					}
				}
			}
			
			deck_of_cards_green_click = {
			
				add_to_variable = {
					var = global.seven_cards
					value = -1
				}
				
				clr_global_flag = deck_of_green_cards
				sound_effect = draw_card_sound
				
				add_to_variable = {
					var = global.num_of_all_cards
					value = -1
				}
				add_to_variable = {
					var = global.num_of_green_cards
					value = -1
				}
				
				# Seven First Cards #
				IF = {
					limit = {
						OR = {
							check_variable = {
								seven_first_cards = 6
							}
							check_variable = {
								seven_first_cards = 5
							}
							check_variable = {
								seven_first_cards = 4
							}
							check_variable = {
								seven_first_cards = 3
							}
							check_variable = {
								seven_first_cards = 2
							}
							check_variable = {
								seven_first_cards = 1
							}
						}						
					}										
					
					add_to_variable = {
						var = seven_first_cards
						value = -1
					}
					
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
							}
						}
						add_to_variable = {
							var = global.p1_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
							}
						}
						add_to_variable = {
							var = global.p2_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
							}
						}
						add_to_variable = {
							var = global.p3_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
							}
						}
						add_to_variable = {
							var = global.p4_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
							}
						}
						add_to_variable = {
							var = global.p5_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
							}
						}
						add_to_variable = {
							var = global.p6_num_of_cards
							value = 1
						}
					}					
				}
				
				# If player got plus 2 or plus 4 ###############################
				
				ELSE_IF = {
					limit = {
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								check_variable = {
									global.num_of_cards_to_draw_p1 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_2
								check_variable = {
									global.num_of_cards_to_draw_p2 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_3
								check_variable = {
									global.num_of_cards_to_draw_p3 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_4
								check_variable = {
									global.num_of_cards_to_draw_p4 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_5
								check_variable = {
									global.num_of_cards_to_draw_p5 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_6
								check_variable = {
									global.num_of_cards_to_draw_p6 > 1
								}
							}
						}						
					}
					
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
							}
						}
						add_to_variable = {
							var = global.p1_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p1
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
							}
						}
						add_to_variable = {
							var = global.p2_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p2
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
							}
						}
						add_to_variable = {
							var = global.p3_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p3
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
							}
						}
						add_to_variable = {
							var = global.p4_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p4
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
							}
						}
						add_to_variable = {
							var = global.p5_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p5
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
							}
						}
						add_to_variable = {
							var = global.p6_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p6
							value = -1
						}
					}					
				}				
				
				# Choosing the queue if clockwise or not				
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_1
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 1
								}								
							}
						}
					}
					clr_global_flag = player_1_turn
					set_global_flag = player_2_turn
					add_to_variable = {
						var = global.p1_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_1
							check_variable = {
								global.num_of_cards_to_draw_p1 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p1 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_2
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 1
								}								
							}
						}
					}
					clr_global_flag = player_2_turn
					set_global_flag = player_3_turn
					add_to_variable = {
						var = global.p2_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_2
							check_variable = {
								global.num_of_cards_to_draw_p2 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p2 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_3
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 1
								}								
							}
						}
					}
					clr_global_flag = player_3_turn
					set_global_flag = player_4_turn
					add_to_variable = {
						var = global.p3_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_3
							check_variable = {
								global.num_of_cards_to_draw_p3 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p3 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_4
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 1
								}								
							}
						}
					}
					clr_global_flag = player_4_turn
					set_global_flag = player_5_turn
					add_to_variable = {
						var = global.p4_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_4
							check_variable = {
								global.num_of_cards_to_draw_p4 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p4 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_5
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 1
								}								
							}
						}
					}
					clr_global_flag = player_5_turn
					set_global_flag = player_6_turn
					add_to_variable = {
						var = global.p5_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_5
							check_variable = {
								global.num_of_cards_to_draw_p5 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p5 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_6
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 1
								}								
							}
						}
					}
					clr_global_flag = player_6_turn
					set_global_flag = player_1_turn
					add_to_variable = {
						var = global.p6_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_6
							check_variable = {
								global.num_of_cards_to_draw_p6 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p6 = 0 }
					}
				}
				# Counter clockwise queue
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_1
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 1
								}								
							}
						}
					}
					clr_global_flag = player_1_turn
					set_global_flag = player_6_turn
					add_to_variable = {
						var = global.p1_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_1
							check_variable = {
								global.num_of_cards_to_draw_p1 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p1 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_2
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 1
								}								
							}
						}
					}
					clr_global_flag = player_2_turn
					set_global_flag = player_1_turn
					add_to_variable = {
						var = global.p2_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_2
							check_variable = {
								global.num_of_cards_to_draw_p2 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p2 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_3
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 1
								}								
							}
						}
					}
					clr_global_flag = player_3_turn
					set_global_flag = player_2_turn
					add_to_variable = {
						var = global.p3_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_3
							check_variable = {
								global.num_of_cards_to_draw_p3 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p3 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_4
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 1
								}								
							}
						}
					}
					clr_global_flag = player_4_turn
					set_global_flag = player_3_turn
					add_to_variable = {
						var = global.p4_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_4
							check_variable = {
								global.num_of_cards_to_draw_p4 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p4 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_5
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 1
								}								
							}
						}
					}
					clr_global_flag = player_5_turn
					set_global_flag = player_4_turn
					add_to_variable = {
						var = global.p5_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_5
							check_variable = {
								global.num_of_cards_to_draw_p5 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p5 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_6
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 1
								}								
							}
						}
					}
					clr_global_flag = player_6_turn
					set_global_flag = player_5_turn
					add_to_variable = {
						var = global.p6_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_6
							check_variable = {
								global.num_of_cards_to_draw_p6 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p6 = 0 }
					}
				}
				
				random_list = {
					global.green_0 = {
						set_country_flag = card_green_0
						set_variable = { global.green_0 = 0 }
					}
					
					global.green_1_one = {
						set_country_flag = card_green_1_one
						set_variable = { global.green_1_one = 0 }
					}
					
					global.green_1_two = {
						set_country_flag = card_green_1_two
						set_variable = { global.green_1_two = 0 }
					}
					
					global.green_2_one = {
						set_country_flag = card_green_2_one
						set_variable = { global.green_2_one = 0 }
					}
					
					global.green_2_two = {
						set_country_flag = card_green_2_two
						set_variable = { global.green_2_two = 0 }
					}
					
					global.green_3_one = {
						set_country_flag = card_green_3_one
						set_variable = { global.green_3_one = 0 }
					}
					
					global.green_3_two = {
						set_country_flag = card_green_3_two
						set_variable = { global.green_3_two = 0 }
					}
					
					global.green_4_one = {
						set_country_flag = card_green_4_one
						set_variable = { global.green_4_one = 0 }
					}
					
					global.green_4_two = {
						set_country_flag = card_green_4_two
						set_variable = { global.green_4_two = 0 }
					}
					
					global.green_5_one = {
						set_country_flag = card_green_5_one
						set_variable = { global.green_5_one = 0 }
					}
					
					global.green_5_two = {
						set_country_flag = card_green_5_two
						set_variable = { global.green_5_two = 0 }
					}
					
					global.green_6_one = {
						set_country_flag = card_green_6_one
						set_variable = { global.green_6_one = 0 }
					}
					
					global.green_6_two = {
						set_country_flag = card_green_6_two
						set_variable = { global.green_6_two = 0 }
					}
					
					global.green_7_one = {
						set_country_flag = card_green_7_one
						set_variable = { global.green_7_one = 0 }
					}
					
					global.green_7_two = {
						set_country_flag = card_green_7_two
						set_variable = { global.green_7_two = 0 }
					}
					
					global.green_8_one = {
						set_country_flag = card_green_8_one
						set_variable = { global.green_8_one = 0 }
					}
					
					global.green_8_two = {
						set_country_flag = card_green_8_two
						set_variable = { global.green_8_two = 0 }
					}
					
					global.green_9_one = {
						set_country_flag = card_green_9_one
						set_variable = { global.green_9_one = 0 }
					}
					
					global.green_9_two = {
						set_country_flag = card_green_9_two
						set_variable = { global.green_9_two = 0 }
					}
					
					global.green_block_one = {
						set_country_flag = card_green_block_one
						set_variable = { global.green_block_one = 0 }
					}
					
					global.green_block_two = {
						set_country_flag = card_green_block_two
						set_variable = { global.green_block_two = 0 }
					}
					
					global.green_reverse_one = {
						set_country_flag = card_green_reverse_one
						set_variable = { global.green_reverse_one = 0 }
					}
						
					global.green_reverse_two = {
						set_country_flag = card_green_reverse_two
						set_variable = { global.green_reverse_two = 0 }
					}
					
					global.green_plus_one = {
						set_country_flag = card_green_plus_one
						set_variable = { global.green_plus_one = 0 }
					}
					
					global.green_plus_two = {
						set_country_flag = card_green_plus_two
						set_variable = { global.green_plus_two = 0 }
					}
				}
				
				
				
				IF = {
					limit = {
						AND = {
							has_global_flag = p1_chance_to_defend
							has_country_flag = this_is_player_1
						}						
					}
					clr_global_flag = p1_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p2_chance_to_defend
							has_country_flag = this_is_player_2
						}						
					}
					clr_global_flag = p2_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p3_chance_to_defend
							has_country_flag = this_is_player_3
						}						
					}
					clr_global_flag = p3_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p4_chance_to_defend
							has_country_flag = this_is_player_4
						}						
					}
					clr_global_flag = p4_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p5_chance_to_defend
							has_country_flag = this_is_player_5
						}						
					}
					clr_global_flag = p5_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p6_chance_to_defend
							has_country_flag = this_is_player_6
						}						
					}
					clr_global_flag = p6_chance_to_defend
				}
				
				random_list = {
					global.num_of_red_cards = {
						set_global_flag = deck_of_red_cards
					}
					global.num_of_blue_cards = {
						set_global_flag = deck_of_blue_cards
					}
					global.num_of_yellow_cards = {
						set_global_flag = deck_of_yellow_cards
					}
					global.num_of_green_cards = {
						set_global_flag = deck_of_green_cards					
					}
					global.num_of_wild_cards = {
						set_global_flag = deck_of_wild_cards					
					}
				}
			}
			
			deck_of_cards_wild_click = {
			
				add_to_variable = {
					var = global.seven_cards
					value = -1
				}
				
				clr_global_flag = deck_of_wild_cards
				sound_effect = draw_card_sound
				
				add_to_variable = {
					var = global.num_of_all_cards
					value = -1
				}
				add_to_variable = {
					var = global.num_of_wild_cards
					value = -1
				}
				
				# Seven First Cards #
				IF = {
					limit = {
						OR = {
							check_variable = {
								seven_first_cards = 6
							}
							check_variable = {
								seven_first_cards = 5
							}
							check_variable = {
								seven_first_cards = 4
							}
							check_variable = {
								seven_first_cards = 3
							}
							check_variable = {
								seven_first_cards = 2
							}
							check_variable = {
								seven_first_cards = 1
							}
						}						
					}										
					
					add_to_variable = {
						var = seven_first_cards
						value = -1
					}
					
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
							}
						}
						add_to_variable = {
							var = global.p1_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
							}
						}
						add_to_variable = {
							var = global.p2_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
							}
						}
						add_to_variable = {
							var = global.p3_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
							}
						}
						add_to_variable = {
							var = global.p4_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
							}
						}
						add_to_variable = {
							var = global.p5_num_of_cards
							value = 1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
							}
						}
						add_to_variable = {
							var = global.p6_num_of_cards
							value = 1
						}
					}					
				}
				
				# If player got plus 2 or plus 4 ###############################
				
				ELSE_IF = {
					limit = {
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								check_variable = {
									global.num_of_cards_to_draw_p1 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_2
								check_variable = {
									global.num_of_cards_to_draw_p2 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_3
								check_variable = {
									global.num_of_cards_to_draw_p3 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_4
								check_variable = {
									global.num_of_cards_to_draw_p4 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_5
								check_variable = {
									global.num_of_cards_to_draw_p5 > 1
								}
							}
							AND = {
								has_country_flag = this_is_player_6
								check_variable = {
									global.num_of_cards_to_draw_p6 > 1
								}
							}
						}						
					}
					
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_1
							}
						}
						add_to_variable = {
							var = global.p1_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p1
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_2
							}
						}
						add_to_variable = {
							var = global.p2_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p2
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_3
							}
						}
						add_to_variable = {
							var = global.p3_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p3
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_4
							}
						}
						add_to_variable = {
							var = global.p4_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p4
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_5
							}
						}
						add_to_variable = {
							var = global.p5_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p5
							value = -1
						}
					}
					IF = {
						limit = {
							ROOT = {
								has_country_flag = this_is_player_6
							}
						}
						add_to_variable = {
							var = global.p6_num_of_cards
							value = 1
						}
						add_to_variable = {
							var = global.num_of_cards_to_draw_p6
							value = -1
						}
					}					
				}				
				
				# Choosing the queue if clockwise or not				
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_1
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 1
								}								
							}
						}
					}
					clr_global_flag = player_1_turn
					set_global_flag = player_2_turn
					add_to_variable = {
						var = global.p1_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_1
							check_variable = {
								global.num_of_cards_to_draw_p1 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p1 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_2
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 1
								}								
							}
						}
					}
					clr_global_flag = player_2_turn
					set_global_flag = player_3_turn
					add_to_variable = {
						var = global.p2_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_2
							check_variable = {
								global.num_of_cards_to_draw_p2 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p2 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_3
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 1
								}								
							}
						}
					}
					clr_global_flag = player_3_turn
					set_global_flag = player_4_turn
					add_to_variable = {
						var = global.p3_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_3
							check_variable = {
								global.num_of_cards_to_draw_p3 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p3 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_4
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 1
								}								
							}
						}
					}
					clr_global_flag = player_4_turn
					set_global_flag = player_5_turn
					add_to_variable = {
						var = global.p4_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_4
							check_variable = {
								global.num_of_cards_to_draw_p4 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p4 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_5
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 1
								}								
							}
						}
					}
					clr_global_flag = player_5_turn
					set_global_flag = player_6_turn
					add_to_variable = {
						var = global.p5_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_5
							check_variable = {
								global.num_of_cards_to_draw_p5 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p5 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_6
							has_global_flag = clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 1
								}								
							}
						}
					}
					clr_global_flag = player_6_turn
					set_global_flag = player_1_turn
					add_to_variable = {
						var = global.p6_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_6
							check_variable = {
								global.num_of_cards_to_draw_p6 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p6 = 0 }
					}
				}
				# Counter clockwise queue
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_1
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 1
								}								
							}
						}
					}
					clr_global_flag = player_1_turn
					set_global_flag = player_6_turn
					add_to_variable = {
						var = global.p1_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_1
							check_variable = {
								global.num_of_cards_to_draw_p1 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p1 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_2
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 1
								}								
							}
						}
					}
					clr_global_flag = player_2_turn
					set_global_flag = player_1_turn
					add_to_variable = {
						var = global.p2_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_2
							check_variable = {
								global.num_of_cards_to_draw_p2 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p2 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_3
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 1
								}								
							}
						}
					}
					clr_global_flag = player_3_turn
					set_global_flag = player_2_turn
					add_to_variable = {
						var = global.p3_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_3
							check_variable = {
								global.num_of_cards_to_draw_p3 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p3 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_4
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 1
								}								
							}
						}
					}
					clr_global_flag = player_4_turn
					set_global_flag = player_3_turn
					add_to_variable = {
						var = global.p4_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_4
							check_variable = {
								global.num_of_cards_to_draw_p4 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p4 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_5
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 1
								}								
							}
						}
					}
					clr_global_flag = player_5_turn
					set_global_flag = player_4_turn
					add_to_variable = {
						var = global.p5_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_5
							check_variable = {
								global.num_of_cards_to_draw_p5 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p5 = 0 }
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_country_flag = this_is_player_6
							has_global_flag = counter_clockwise_queue
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 1
								}								
							}
						}
					}
					clr_global_flag = player_6_turn
					set_global_flag = player_5_turn
					add_to_variable = {
						var = global.p6_num_of_cards
						value = 1
					}
					
					IF = {
						limit = {
							has_country_flag = this_is_player_6
							check_variable = {
								global.num_of_cards_to_draw_p6 = 1
							}
						}
						set_variable = { global.num_of_cards_to_draw_p6 = 0 }
					}
				}
				
				random_list = {
					global.num_of_wild_plus_one = {
						set_country_flag = card_wild_plus_one
						set_variable = { global.num_of_wild_plus_one = 0 }
					}
					
					global.num_of_wild_plus_two = {
						set_country_flag = card_wild_plus_two
						set_variable = { global.num_of_wild_plus_two = 0 }
					}
					
					global.num_of_wild_plus_three = {
						set_country_flag = card_wild_plus_three
						set_variable = { global.num_of_wild_plus_three = 0 }
					}
					
					global.num_of_wild_plus_three = {
						set_country_flag = card_wild_plus_four
						set_variable = { global.num_of_wild_plus_four = 0 }
					}
					
					global.num_of_wild_color_one = {
						set_country_flag = card_wild_color_one
						set_variable = { global.num_of_wild_color_one = 0 }
					}
					
					global.num_of_wild_color_two = {
						set_country_flag = card_wild_color_two
						set_variable = { global.num_of_wild_color_two = 0 }
					}
					
					global.num_of_wild_color_three = {
						set_country_flag = card_wild_color_three
						set_variable = { global.num_of_wild_color_three = 0 }
					}
					
					global.num_of_wild_color_four = {
						set_country_flag = card_wild_color_four
						set_variable = { global.num_of_wild_color_four = 0 }
					}
					
				}
				
				
				
				IF = {
					limit = {
						AND = {
							has_global_flag = p1_chance_to_defend
							has_country_flag = this_is_player_1
						}						
					}
					clr_global_flag = p1_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p2_chance_to_defend
							has_country_flag = this_is_player_2
						}						
					}
					clr_global_flag = p2_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p3_chance_to_defend
							has_country_flag = this_is_player_3
						}						
					}
					clr_global_flag = p3_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p4_chance_to_defend
							has_country_flag = this_is_player_4
						}						
					}
					clr_global_flag = p4_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p5_chance_to_defend
							has_country_flag = this_is_player_5
						}						
					}
					clr_global_flag = p5_chance_to_defend
				}
				IF = {
					limit = {
						AND = {
							has_global_flag = p6_chance_to_defend
							has_country_flag = this_is_player_6
						}						
					}
					clr_global_flag = p6_chance_to_defend
				}
				
				random_list = {
					global.num_of_red_cards = {
						set_global_flag = deck_of_red_cards
					}
					global.num_of_blue_cards = {
						set_global_flag = deck_of_blue_cards
					}
					global.num_of_yellow_cards = {
						set_global_flag = deck_of_yellow_cards
					}
					global.num_of_green_cards = {
						set_global_flag = deck_of_green_cards					
					}
					global.num_of_wild_cards = {
						set_global_flag = deck_of_wild_cards					
					}
				}
			}
		}
		
		triggers = {	
			
			num_of_all_cards_visible = {
				has_global_flag = game_started
			}
			
			waiting_for_players_visible = {
				any_country = {
					has_country_flag = UNO_game_host
				}				
				NOT = {
					AND = {
					has_global_flag = player_2_joined
					has_global_flag = player_3_joined
					has_global_flag = player_4_joined
					has_global_flag = player_5_joined
					has_global_flag = player_6_joined
					}					
				}
			}
			
			# DEBUG
			
			num_of_red_cards_visible = {
				is_debug = yes
			}
			
			num_of_blue_cards_visible = {
				is_debug = yes
			}
			
			num_of_yellow_cards_visible = {
				is_debug = yes
			}
			
			num_of_green_cards_visible = {
				is_debug = yes
			}
			
			num_of_wild_cards_visible = {
				is_debug = yes
			}
			
			p1_plus_visible = {
				is_debug = yes
			}
			
			p2_plus_visible = {
				is_debug = yes
			}
			
			p3_plus_visible = {
				is_debug = yes
			}
			
			p4_plus_visible = {
				is_debug = yes
			}
			
			p5_plus_visible = {
				is_debug = yes
			}
			
			p6_plus_visible = {
				is_debug = yes
			}
			
			num_of_seven_cards_visible = {
				is_debug = yes
			}
			
			seven_cards_visible = {
				is_debug = yes
			}
			
			# INFORMATIONS
			
			everyone_draws_seven_visible = {
				has_global_flag = game_started
				check_variable = {
					global.seven_cards > 0
				}
				has_global_flag = player_2_joined
				has_global_flag = player_3_joined
				has_global_flag = player_4_joined
				has_global_flag = player_5_joined
				has_global_flag = player_6_joined
			}
			
			# UNO TEXT VISIBLE
			
			# PLAYER 1 PERSPECTIVE ####################
			
			player_1_p1p_uno_visible = {
				has_country_flag = this_is_player_1
				
				check_variable = {
					global.p1_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				}
			}
			
			player_2_p1p_uno_visible = {
				has_country_flag = this_is_player_1
				
				check_variable = {
					global.p2_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_3_p1p_uno_visible = {
				has_country_flag = this_is_player_1
				
				check_variable = {
					global.p3_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_4_p1p_uno_visible = {
				has_country_flag = this_is_player_1
				
				check_variable = {
					global.p4_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_5_p1p_uno_visible = {
				has_country_flag = this_is_player_1
				
				check_variable = {
					global.p5_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_6_p1p_uno_visible = {
				has_country_flag = this_is_player_1
				
				check_variable = {
					global.p6_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			# PLAYER 2 PERSPECTIVE ####################
			
			player_1_p2p_uno_visible = {
				has_country_flag = this_is_player_2
				
				check_variable = {
					global.p2_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_2_p2p_uno_visible = {
				has_country_flag = this_is_player_2
				
				check_variable = {
					global.p3_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_3_p2p_uno_visible = {
				has_country_flag = this_is_player_2
				
				check_variable = {
					global.p4_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_4_p2p_uno_visible = {
				has_country_flag = this_is_player_2
				
				check_variable = {
					global.p5_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_5_p2p_uno_visible = {
				has_country_flag = this_is_player_2
				
				check_variable = {
					global.p6_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_6_p2p_uno_visible = {
				has_country_flag = this_is_player_2
				
				check_variable = {
					global.p1_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			# PLAYER 3 PERSPECTIVE ####################
			
			player_1_p3p_uno_visible = {
				has_country_flag = this_is_player_3
				
				check_variable = {
					global.p3_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_2_p3p_uno_visible = {
				has_country_flag = this_is_player_3
				
				check_variable = {
					global.p4_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_3_p3p_uno_visible = {
				has_country_flag = this_is_player_3
				
				check_variable = {
					global.p5_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_4_p3p_uno_visible = {
				has_country_flag = this_is_player_3
				
				check_variable = {
					global.p6_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_5_p3p_uno_visible = {
				has_country_flag = this_is_player_3
				
				check_variable = {
					global.p1_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_6_p3p_uno_visible = {
				has_country_flag = this_is_player_3
				
				check_variable = {
					global.p2_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			# PLAYER 4 PERSPECTIVE ####################
			
			player_1_p4p_uno_visible = {
				has_country_flag = this_is_player_4
				
				check_variable = {
					global.p4_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_2_p4p_uno_visible = {
				has_country_flag = this_is_player_4
				
				check_variable = {
					global.p5_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_3_p4p_uno_visible = {
				has_country_flag = this_is_player_4
				
				check_variable = {
					global.p6_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_4_p4p_uno_visible = {
				has_country_flag = this_is_player_4
				
				check_variable = {
					global.p1_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_5_p4p_uno_visible = {
				has_country_flag = this_is_player_4
				
				check_variable = {
					global.p2_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_6_p4p_uno_visible = {
				has_country_flag = this_is_player_4
				
				check_variable = {
					global.p3_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			# PLAYER 5 PERSPECTIVE ####################
			
			player_1_p5p_uno_visible = {
				has_country_flag = this_is_player_5
				
				check_variable = {
					global.p5_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_2_p5p_uno_visible = {
				has_country_flag = this_is_player_5
				
				check_variable = {
					global.p6_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_3_p5p_uno_visible = {
				has_country_flag = this_is_player_5
				
				check_variable = {
					global.p1_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_4_p5p_uno_visible = {
				has_country_flag = this_is_player_5
				
				check_variable = {
					global.p2_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_5_p5p_uno_visible = {
				has_country_flag = this_is_player_5
				
				check_variable = {
					global.p3_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_6_p5p_uno_visible = {
				has_country_flag = this_is_player_5
				
				check_variable = {
					global.p4_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			# PLAYER 6 PERSPECTIVE ####################
			
			player_1_p6p_uno_visible = {
				has_country_flag = this_is_player_6
				
				check_variable = {
					global.p6_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_2_p6p_uno_visible = {
				has_country_flag = this_is_player_6
				
				check_variable = {
					global.p1_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_3_p6p_uno_visible = {
				has_country_flag = this_is_player_6
				
				check_variable = {
					global.p2_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_4_p6p_uno_visible = {
				has_country_flag = this_is_player_6
				
				check_variable = {
					global.p3_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_5_p6p_uno_visible = {
				has_country_flag = this_is_player_6
				
				check_variable = {
					global.p4_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			player_6_p6p_uno_visible = {
				has_country_flag = this_is_player_6
				
				check_variable = {
					global.p5_num_of_cards = 1
				}
				
				NOT = {
					check_variable = {
						global.seven_cards > 0
					}
				} 
			}
			
			############################################
			
			# COLORS MIDDLE
			
			color_middle_red_visible = {
			
				OR = {
				has_global_flag = wild_color_middle
				has_global_flag = wild_plus_middle
				}
				
				has_global_flag = player_is_choosing_a_color
				OR = {
					AND = {
						has_global_flag = player_1_turn
						has_country_flag = this_is_player_1
					}
					AND = {
						has_global_flag = player_2_turn
						has_country_flag = this_is_player_2
					}
					AND = {
						has_global_flag = player_3_turn
						has_country_flag = this_is_player_3
					}
					AND = {
						has_global_flag = player_4_turn
						has_country_flag = this_is_player_4
					}
					AND = {
						has_global_flag = player_5_turn
						has_country_flag = this_is_player_5
					}
					AND = {
						has_global_flag = player_6_turn
						has_country_flag = this_is_player_6
					}
				}
			}
			
			color_middle_blue_visible = {
				OR = {
				has_global_flag = wild_color_middle
				has_global_flag = wild_plus_middle
				}
				
				has_global_flag = player_is_choosing_a_color
				OR = {
					AND = {
						has_global_flag = player_1_turn
						has_country_flag = this_is_player_1
					}
					AND = {
						has_global_flag = player_2_turn
						has_country_flag = this_is_player_2
					}
					AND = {
						has_global_flag = player_3_turn
						has_country_flag = this_is_player_3
					}
					AND = {
						has_global_flag = player_4_turn
						has_country_flag = this_is_player_4
					}
					AND = {
						has_global_flag = player_5_turn
						has_country_flag = this_is_player_5
					}
					AND = {
						has_global_flag = player_6_turn
						has_country_flag = this_is_player_6
					}
				}
			}
			
			color_middle_yellow_visible = {
				OR = {
				has_global_flag = wild_color_middle
				has_global_flag = wild_plus_middle
				}
				has_global_flag = player_is_choosing_a_color
				OR = {
					AND = {
						has_global_flag = player_1_turn
						has_country_flag = this_is_player_1
					}
					AND = {
						has_global_flag = player_2_turn
						has_country_flag = this_is_player_2
					}
					AND = {
						has_global_flag = player_3_turn
						has_country_flag = this_is_player_3
					}
					AND = {
						has_global_flag = player_4_turn
						has_country_flag = this_is_player_4
					}
					AND = {
						has_global_flag = player_5_turn
						has_country_flag = this_is_player_5
					}
					AND = {
						has_global_flag = player_6_turn
						has_country_flag = this_is_player_6
					}
				}
			}
			
			color_middle_green_visible = {
				OR = {
				has_global_flag = wild_color_middle
				has_global_flag = wild_plus_middle
				}
				has_global_flag = player_is_choosing_a_color
				OR = {
					AND = {
						has_global_flag = player_1_turn
						has_country_flag = this_is_player_1
					}
					AND = {
						has_global_flag = player_2_turn
						has_country_flag = this_is_player_2
					}
					AND = {
						has_global_flag = player_3_turn
						has_country_flag = this_is_player_3
					}
					AND = {
						has_global_flag = player_4_turn
						has_country_flag = this_is_player_4
					}
					AND = {
						has_global_flag = player_5_turn
						has_country_flag = this_is_player_5
					}
					AND = {
						has_global_flag = player_6_turn
						has_country_flag = this_is_player_6
					}
				}
			}
			
			# QUEUE
			
			clockwise_queue_visible = {
				has_global_flag = game_started
				has_global_flag = clockwise_queue
			}
			
			counter_clockwise_queue_visible = {
				has_global_flag = game_started
				has_global_flag = counter_clockwise_queue
			}
			
			
			# COLORS INFO
			
			current_color_red_visible = {
				has_global_flag = red_middle
			}
			
			current_color_blue_visible = {
				has_global_flag = blue_middle
			}
			
			current_color_yellow_visible = {
				has_global_flag = yellow_middle
			}
			
			current_color_green_visible = {
				has_global_flag = green_middle
			}
			
			
			# MIDDLE CARDS
			
			# RED ###############################
			
			red_0_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = zero_middle
			}
			
			red_1_one_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = one_middle
			}
			
			red_1_two_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = one_middle
			}
			
			red_2_one_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = two_middle
			}
			
			red_2_two_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = two_middle
			}
			
			red_3_one_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = three_middle
			}
			
			red_3_two_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = three_middle
			}
			
			red_4_one_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = four_middle
			}
			
			red_4_two_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = four_middle
			}
			
			red_5_one_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = five_middle
			}
			
			red_5_two_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = five_middle
			}
			
			red_6_one_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = six_middle
			}
			
			red_6_two_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = six_middle
			}
			
			red_7_one_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = seven_middle
			}
			
			red_7_two_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = seven_middle
			}
			
			red_8_one_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = eight_middle
			}
			
			red_8_two_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = eight_middle
			}
			
			red_9_one_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = nine_middle
			}
			
			red_9_two_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = nine_middle
			}
			
			red_block_one_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = block_middle
			}
			
			red_block_two_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = block_middle
			}
			
			red_reverse_one_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = reverse_middle
			}
			
			red_reverse_two_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = reverse_middle
			}
			
			red_plus_one_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = plus_middle
			}
			
			red_plus_two_middle_visible = {
				has_global_flag = red_middle
				has_global_flag = plus_middle
			}
			
			# blue ###############################
			
			blue_0_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = zero_middle
			}
			
			blue_1_one_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = one_middle
			}
			
			blue_1_two_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = one_middle
			}
			
			blue_2_one_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = two_middle
			}
			
			blue_2_two_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = two_middle
			}
			
			blue_3_one_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = three_middle
			}
			
			blue_3_two_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = three_middle
			}
			
			blue_4_one_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = four_middle
			}
			
			blue_4_two_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = four_middle
			}
			
			blue_5_one_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = five_middle
			}
			
			blue_5_two_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = five_middle
			}
			
			blue_6_one_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = six_middle
			}
			
			blue_6_two_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = six_middle
			}
			
			blue_7_one_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = seven_middle
			}
			
			blue_7_two_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = seven_middle
			}
			
			blue_8_one_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = eight_middle
			}
			
			blue_8_two_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = eight_middle
			}
			
			blue_9_one_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = nine_middle
			}
			
			blue_9_two_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = nine_middle
			}
			
			blue_block_one_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = block_middle
			}
			
			blue_block_two_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = block_middle
			}
			
			blue_reverse_one_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = reverse_middle
			}
			
			blue_reverse_two_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = reverse_middle
			}
			
			blue_plus_one_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = plus_middle
			}
			
			blue_plus_two_middle_visible = {
				has_global_flag = blue_middle
				has_global_flag = plus_middle
			}
			
			# yellow ###############################
			
			yellow_0_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = zero_middle
			}
			
			yellow_1_one_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = one_middle
			}
			
			yellow_1_two_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = one_middle
			}
			
			yellow_2_one_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = two_middle
			}
			
			yellow_2_two_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = two_middle
			}
			
			yellow_3_one_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = three_middle
			}
			
			yellow_3_two_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = three_middle
			}
			
			yellow_4_one_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = four_middle
			}
			
			yellow_4_two_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = four_middle
			}
			
			yellow_5_one_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = five_middle
			}
			
			yellow_5_two_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = five_middle
			}
			
			yellow_6_one_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = six_middle
			}
			
			yellow_6_two_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = six_middle
			}
			
			yellow_7_one_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = seven_middle
			}
			
			yellow_7_two_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = seven_middle
			}
			
			yellow_8_one_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = eight_middle
			}
			
			yellow_8_two_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = eight_middle
			}
			
			yellow_9_one_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = nine_middle
			}
			
			yellow_9_two_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = nine_middle
			}
			
			yellow_block_one_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = block_middle
			}
			
			yellow_block_two_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = block_middle
			}
			
			yellow_reverse_one_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = reverse_middle
			}
			
			yellow_reverse_two_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = reverse_middle
			}
			
			yellow_plus_one_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = plus_middle
			}
			
			yellow_plus_two_middle_visible = {
				has_global_flag = yellow_middle
				has_global_flag = plus_middle
			}
			
			# green ###############################
			
			green_0_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = zero_middle
			}
			
			green_1_one_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = one_middle
			}
			
			green_1_two_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = one_middle
			}
			
			green_2_one_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = two_middle
			}
			
			green_2_two_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = two_middle
			}
			
			green_3_one_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = three_middle
			}
			
			green_3_two_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = three_middle
			}
			
			green_4_one_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = four_middle
			}
			
			green_4_two_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = four_middle
			}
			
			green_5_one_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = five_middle
			}
			
			green_5_two_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = five_middle
			}
			
			green_6_one_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = six_middle
			}
			
			green_6_two_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = six_middle
			}
			
			green_7_one_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = seven_middle
			}
			
			green_7_two_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = seven_middle
			}
			
			green_8_one_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = eight_middle
			}
			
			green_8_two_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = eight_middle
			}
			
			green_9_one_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = nine_middle
			}
			
			green_9_two_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = nine_middle
			}
			
			green_block_one_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = block_middle
			}
			
			green_block_two_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = block_middle
			}
			
			green_reverse_one_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = reverse_middle
			}
			
			green_reverse_two_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = reverse_middle
			}
			
			green_plus_one_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = plus_middle
			}
			
			green_plus_two_middle_visible = {
				has_global_flag = green_middle
				has_global_flag = plus_middle
			}
			
			# WILD ###
			
			wild_plus_one_middle_visible = {
				has_global_flag = wild_middle
				has_global_flag = wild_plus_one
				NOT = {
				has_global_flag = wild_color_middle
				}
			}
			
			wild_plus_two_middle_visible = {
				has_global_flag = wild_middle
				has_global_flag = wild_plus_two
				NOT = {
				has_global_flag = wild_color_middle
				}
			}
			
			wild_plus_three_middle_visible = {
				has_global_flag = wild_middle
				has_global_flag = wild_plus_three
				NOT = {
				has_global_flag = wild_color_middle
				}
			}
			
			wild_plus_four_middle_visible = {
				has_global_flag = wild_middle
				has_global_flag = wild_plus_four
				NOT = {
				has_global_flag = wild_color_middle
				}
			}
			
			###
			
			wild_color_one_middle_visible = {
				has_global_flag = wild_middle
				has_global_flag = wild_color_one
				NOT = {
				has_global_flag = wild_plus_middle
				}
			}
			
			wild_color_two_middle_visible = {
				has_global_flag = wild_middle
				has_global_flag = wild_color_two
				NOT = {
				has_global_flag = wild_plus_middle
				}
			}
			
			wild_color_three_middle_visible = {
				has_global_flag = wild_middle
				has_global_flag = wild_color_three
				NOT = {
				has_global_flag = wild_plus_middle
				}
			}
			
			wild_color_four_middle_visible = {
				has_global_flag = wild_middle
				has_global_flag = wild_color_four
				NOT = {
				has_global_flag = wild_plus_middle
				}
			}
			
			############################################
			
			choose_color_middle_visible = {
				has_global_flag = player_is_choosing_a_color
				OR = {
					AND = {
						has_global_flag = player_1_turn
						has_country_flag = this_is_player_1
					}
					AND = {
						has_global_flag = player_2_turn
						has_country_flag = this_is_player_2
					}
					AND = {
						has_global_flag = player_3_turn
						has_country_flag = this_is_player_3
					}
					AND = {
						has_global_flag = player_4_turn
						has_country_flag = this_is_player_4
					}
					AND = {
						has_global_flag = player_5_turn
						has_country_flag = this_is_player_5
					}
					AND = {
						has_global_flag = player_6_turn
						has_country_flag = this_is_player_6
					}
				}
			}
		
			
			# PLAYER TURN
			
			player_1_turn_visible = {
				has_global_flag = player_1_turn
			}
			
			player_2_turn_visible = {
				has_global_flag = player_2_turn
			}
			
			player_3_turn_visible = {
				has_global_flag = player_3_turn
			}
			
			player_4_turn_visible = {
				has_global_flag = player_4_turn
			}
			
			player_5_turn_visible = {
				has_global_flag = player_5_turn
			}
			
			player_6_turn_visible = {
				has_global_flag = player_6_turn
			}		
		
			# ENABLED CLICKING
			
			############### CARDS ##################
			
			# RED #
			
			red_0_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_1_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_1_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_2_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_2_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_3_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_3_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_4_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_4_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_5_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_5_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_6_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_6_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_7_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_7_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_8_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_8_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_9_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_9_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_block_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_block_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_reverse_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_reverse_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			red_plus_one_p1_click_enabled = {
				ROOT = {
					OR = {
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p1 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = p1_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_2
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p2 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = p2_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_3
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p3 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = p3_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_4
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p4 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = p4_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_5
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p5 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = p5_chance_to_defend
							}	
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_6
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p6 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = p6_chance_to_defend
							}
						}
					}					
				}
			}
			
			red_plus_two_p1_click_enabled = {
				ROOT = {
					OR = {
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p1 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = p1_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_2
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p2 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = p2_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_3
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p3 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = p3_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_4
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p4 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = p4_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_5
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p5 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = p5_chance_to_defend
							}	
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_6
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p6 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = p6_chance_to_defend
							}
						}
					}
				}
			}			
			# BLUE #
			
			blue_0_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_1_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_1_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_2_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_2_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_3_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_3_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_4_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_4_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_5_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_5_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_6_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_6_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_7_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_7_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_8_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_8_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_9_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_9_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_block_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_block_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_reverse_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_reverse_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			blue_plus_one_p1_click_enabled = {
				ROOT = {
					OR = {
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p1 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = p1_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_2
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p2 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = p2_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_3
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p3 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = p3_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_4
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p4 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = p4_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_5
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p5 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = p5_chance_to_defend
							}	
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_6
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p6 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = p6_chance_to_defend
							}
						}
					}					
				}
			}
			
			blue_plus_two_p1_click_enabled = {
				ROOT = {
					OR = {
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p1 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = p1_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_2
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p2 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = p2_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_3
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p3 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = p3_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_4
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p4 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = p4_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_5
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p5 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = p5_chance_to_defend
							}	
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_6
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p6 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = p6_chance_to_defend
							}
						}
					}
				}
			}			
			# yellow #
			
			yellow_0_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_1_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_1_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_2_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_2_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_3_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_3_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_4_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_4_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_5_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_5_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_6_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_6_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_7_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_7_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_8_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_8_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_9_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_9_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_block_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_block_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_reverse_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_reverse_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			yellow_plus_one_p1_click_enabled = {
				ROOT = {
					OR = {
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p1 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = p1_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_2
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p2 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = p2_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_3
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p3 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = p3_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_4
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p4 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = p4_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_5
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p5 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = p5_chance_to_defend
							}	
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_6
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p6 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = p6_chance_to_defend
							}
						}
					}					
				}
			}
			
			yellow_plus_two_p1_click_enabled = {
				ROOT = {
					OR = {
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p1 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = p1_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_2
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p2 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = p2_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_3
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p3 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = p3_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_4
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p4 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = p4_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_5
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p5 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = p5_chance_to_defend
							}	
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_6
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p6 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = p6_chance_to_defend
							}
						}
					}
				}
			}			
			# green #
			
			green_0_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_1_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_1_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_2_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_2_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_3_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_3_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_4_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_4_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_5_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_5_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_6_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_6_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_7_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_7_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_8_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_8_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_9_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_9_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_block_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_block_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_reverse_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_reverse_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			green_plus_one_p1_click_enabled = {
				ROOT = {
					OR = {
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p1 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = p1_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_2
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p2 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = p2_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_3
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p3 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = p3_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_4
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p4 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = p4_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_5
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p5 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = p5_chance_to_defend
							}	
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_6
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p6 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = p6_chance_to_defend
							}
						}
					}					
				}
			}
			
			##################################################################
			green_plus_two_p1_click_enabled = {
				ROOT = {
					OR = {
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p1 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = p1_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_2
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p2 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = p2_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_3
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p3 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = p3_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_4
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p4 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = p4_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_5
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p5 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = p5_chance_to_defend
							}	
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_6
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p6 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = p6_chance_to_defend
							}
						}
					}
				}
			}			
			############################################################
			
			# WILD CLICK ENABLED
			
			wild_color_one_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			wild_color_two_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			wild_color_three_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			wild_color_four_p1_click_enabled = {
				ROOT = {
					OR = {
						AND = {
							has_country_flag = this_is_player_1
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p1 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_2
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p2 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_3
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p3 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_4
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p4 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_5
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p5 > 0
								}
							}
						}
						AND = {
							has_country_flag = this_is_player_6
							NOT = {
								check_variable = {
									global.num_of_cards_to_draw_p6 > 0
								}
							}
						}
					}
				}
			}
			
			##################################################################
			wild_plus_one_p1_click_enabled = {
				ROOT = {
					OR = {
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p1 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = p1_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_2
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p2 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = p2_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_3
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p3 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = p3_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_4
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p4 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = p4_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_5
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p5 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = p5_chance_to_defend
							}	
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_6
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p6 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = p6_chance_to_defend
							}
						}
					}
				}
			}			
			##################################################################
			wild_plus_two_p1_click_enabled = {
				ROOT = {
					OR = {
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p1 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = p1_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_2
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p2 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = p2_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_3
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p3 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = p3_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_4
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p4 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = p4_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_5
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p5 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = p5_chance_to_defend
							}	
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_6
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p6 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = p6_chance_to_defend
							}
						}
					}
				}
			}			
			##################################################################
			wild_plus_three_p1_click_enabled = {
				ROOT = {
					OR = {
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p1 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = p1_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_2
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p2 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = p2_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_3
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p3 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = p3_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_4
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p4 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = p4_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_5
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p5 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = p5_chance_to_defend
							}	
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_6
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p6 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = p6_chance_to_defend
							}
						}
					}
				}
			}			
			##################################################################
			wild_plus_four_p1_click_enabled = {
				ROOT = {
					OR = {
						OR = {
							AND = {
								has_country_flag = this_is_player_1
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p1 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_1
								has_global_flag = p1_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_2
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p2 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_2
								has_global_flag = p2_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_3
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p3 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_3
								has_global_flag = p3_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_4
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p4 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_4
								has_global_flag = p4_chance_to_defend
							}
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_5
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p5 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_5
								has_global_flag = p5_chance_to_defend
							}	
						}
						OR = {
							AND = {
								has_country_flag = this_is_player_6
								NOT = {
									check_variable = {
										global.num_of_cards_to_draw_p6 > 0
									}
								}
							}
							AND = {
								has_country_flag = this_is_player_6
								has_global_flag = p6_chance_to_defend
							}
						}
					}
				}
			}			
			############################################################
			
			deck_of_cards_red_click_enabled = {
				NOT = {
					has_global_flag = player_is_choosing_a_color
				}
				has_global_flag = player_2_joined
				has_global_flag = player_3_joined
				has_global_flag = player_4_joined
				has_global_flag = player_5_joined
				has_global_flag = player_6_joined
				
				has_global_flag = game_started
				OR = {
					AND = {
						has_global_flag = player_1_turn
						has_country_flag = this_is_player_1
					}
					AND = {
						has_global_flag = player_2_turn
						has_country_flag = this_is_player_2
					}
					AND = {
						has_global_flag = player_3_turn
						has_country_flag = this_is_player_3
					}
					AND = {
						has_global_flag = player_4_turn
						has_country_flag = this_is_player_4
					}
					AND = {
						has_global_flag = player_5_turn
						has_country_flag = this_is_player_5
					}
					AND = {
						has_global_flag = player_6_turn
						has_country_flag = this_is_player_6
					}
				}
			}
			
			deck_of_cards_blue_click_enabled = {
				NOT = {
					has_global_flag = player_is_choosing_a_color
				}
				has_global_flag = player_2_joined
				has_global_flag = player_3_joined
				has_global_flag = player_4_joined
				has_global_flag = player_5_joined
				has_global_flag = player_6_joined
				
				has_global_flag = game_started
				OR = {
					AND = {
						has_global_flag = player_1_turn
						has_country_flag = this_is_player_1
					}
					AND = {
						has_global_flag = player_2_turn
						has_country_flag = this_is_player_2
					}
					AND = {
						has_global_flag = player_3_turn
						has_country_flag = this_is_player_3
					}
					AND = {
						has_global_flag = player_4_turn
						has_country_flag = this_is_player_4
					}
					AND = {
						has_global_flag = player_5_turn
						has_country_flag = this_is_player_5
					}
					AND = {
						has_global_flag = player_6_turn
						has_country_flag = this_is_player_6
					}
				}
			}
			
			deck_of_cards_yellow_click_enabled = {
				NOT = {
					has_global_flag = player_is_choosing_a_color
				}
				has_global_flag = player_2_joined
				has_global_flag = player_3_joined
				has_global_flag = player_4_joined
				has_global_flag = player_5_joined
				has_global_flag = player_6_joined
				
				has_global_flag = game_started
				OR = {
					AND = {
						has_global_flag = player_1_turn
						has_country_flag = this_is_player_1
					}
					AND = {
						has_global_flag = player_2_turn
						has_country_flag = this_is_player_2
					}
					AND = {
						has_global_flag = player_3_turn
						has_country_flag = this_is_player_3
					}
					AND = {
						has_global_flag = player_4_turn
						has_country_flag = this_is_player_4
					}
					AND = {
						has_global_flag = player_5_turn
						has_country_flag = this_is_player_5
					}
					AND = {
						has_global_flag = player_6_turn
						has_country_flag = this_is_player_6
					}
				}
			}
			
			deck_of_cards_green_click_enabled = {
				NOT = {
					has_global_flag = player_is_choosing_a_color
				}
				has_global_flag = player_2_joined
				has_global_flag = player_3_joined
				has_global_flag = player_4_joined
				has_global_flag = player_5_joined
				has_global_flag = player_6_joined
				
				has_global_flag = game_started
				OR = {
					AND = {
						has_global_flag = player_1_turn
						has_country_flag = this_is_player_1
					}
					AND = {
						has_global_flag = player_2_turn
						has_country_flag = this_is_player_2
					}
					AND = {
						has_global_flag = player_3_turn
						has_country_flag = this_is_player_3
					}
					AND = {
						has_global_flag = player_4_turn
						has_country_flag = this_is_player_4
					}
					AND = {
						has_global_flag = player_5_turn
						has_country_flag = this_is_player_5
					}
					AND = {
						has_global_flag = player_6_turn
						has_country_flag = this_is_player_6
					}
				}
			}
			
			deck_of_cards_wild_click_enabled = {
				NOT = {
					has_global_flag = player_is_choosing_a_color
				}
				has_global_flag = player_2_joined
				has_global_flag = player_3_joined
				has_global_flag = player_4_joined
				has_global_flag = player_5_joined
				has_global_flag = player_6_joined
				
				has_global_flag = game_started
				OR = {
					AND = {
						has_global_flag = player_1_turn
						has_country_flag = this_is_player_1
					}
					AND = {
						has_global_flag = player_2_turn
						has_country_flag = this_is_player_2
					}
					AND = {
						has_global_flag = player_3_turn
						has_country_flag = this_is_player_3
					}
					AND = {
						has_global_flag = player_4_turn
						has_country_flag = this_is_player_4
					}
					AND = {
						has_global_flag = player_5_turn
						has_country_flag = this_is_player_5
					}
					AND = {
						has_global_flag = player_6_turn
						has_country_flag = this_is_player_6
					}
				}
			}
			
			# NUMBER OF CARDS TO DRAW TEXT
			
			drawing_cards_number1_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.num_of_cards_to_draw_p1 > 0
				}
			}
			
			drawing_cards_number2_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.num_of_cards_to_draw_p2 > 0
				}
			}
			
			drawing_cards_number3_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.num_of_cards_to_draw_p3 > 0
				}
			}
			
			drawing_cards_number4_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.num_of_cards_to_draw_p4 > 0
				}
			}
			
			drawing_cards_number5_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.num_of_cards_to_draw_p5 > 0
				}
			}
			
			drawing_cards_number6_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.num_of_cards_to_draw_p6 > 0
				}
			}
			
			# DECK OF CARDS
			
			deck_of_cards_red_visible = {
				has_global_flag = deck_of_red_cards
			}
			
			deck_of_cards_blue_visible = {
				has_global_flag = deck_of_blue_cards
			}
			
			deck_of_cards_yellow_visible = {
				has_global_flag = deck_of_yellow_cards
			}
			
			deck_of_cards_green_visible = {
				has_global_flag = deck_of_green_cards
			}
			
			deck_of_cards_wild_visible = {
				has_global_flag = deck_of_wild_cards
			}
			
			# PERSPECTIVE
		
			player_1_perspective_visible = {
				is_debug = yes
				has_country_flag = this_is_player_1
			}
			
			player_2_perspective_visible = {
				is_debug = yes
				has_country_flag = this_is_player_2
			}
			
			player_3_perspective_visible = {
				is_debug = yes
				has_country_flag = this_is_player_3
			}
			
			player_4_perspective_visible = {
				is_debug = yes
				has_country_flag = this_is_player_4
			}
			
			player_5_perspective_visible = {
				is_debug = yes
				has_country_flag = this_is_player_5
			}
			
			player_6_perspective_visible = {
				is_debug = yes
				has_country_flag = this_is_player_6
			}
			
			# Cards that player sees
			
			# COLOR / NUMBER / PLAYER / SLOT
			
			#RED
			
			red_0_p1_visible = {
				has_country_flag = card_red_0
			}
			
			red_1_one_p1_visible = {
				has_country_flag = card_red_1_one
			}
			
			red_1_two_p1_visible = {
				has_country_flag = card_red_1_two
			}
			
			red_2_one_p1_visible = {
				has_country_flag = card_red_2_one
			}
			
			red_2_two_p1_visible = {
				has_country_flag = card_red_2_two
			}
			
			red_3_one_p1_visible = {
				has_country_flag = card_red_3_one
			}
			
			red_3_two_p1_visible = {
				has_country_flag = card_red_3_two
			}
			
			red_4_one_p1_visible = {
				has_country_flag = card_red_4_one
			}
			
			red_4_two_p1_visible = {
				has_country_flag = card_red_4_two
			}
			
			red_5_one_p1_visible = {
				has_country_flag = card_red_5_one
			}
			
			red_5_two_p1_visible = {
				has_country_flag = card_red_5_two
			}
			
			red_6_one_p1_visible = {
				has_country_flag = card_red_6_one
			}
			
			red_6_two_p1_visible = {
				has_country_flag = card_red_6_two
			}
			
			red_7_one_p1_visible = {
				has_country_flag = card_red_7_one
			}
			
			red_7_two_p1_visible = {
				has_country_flag = card_red_7_two
			}
			
			red_8_one_p1_visible = {
				has_country_flag = card_red_8_one
			}
			
			red_8_two_p1_visible = {
				has_country_flag = card_red_8_two
			}
			
			red_9_one_p1_visible = {
				has_country_flag = card_red_9_one
			}
			
			red_9_two_p1_visible = {
				has_country_flag = card_red_9_two
			}
			
			red_block_one_p1_visible = {
				has_country_flag = card_red_block_one
			}
			
			red_block_two_p1_visible = {
				has_country_flag = card_red_block_two
			}
			
			red_reverse_one_p1_visible = {
				has_country_flag = card_red_reverse_one
			}
			
			red_reverse_two_p1_visible = {
				has_country_flag = card_red_reverse_two
			}
			
			red_plus_one_p1_visible = {
				has_country_flag = card_red_plus_one
			}
			
			red_plus_two_p1_visible = {
				has_country_flag = card_red_plus_two
			}
			
			#BLUE
			
			blue_0_p1_visible = {
				has_country_flag = card_blue_0
			}
			
			blue_1_one_p1_visible = {
				has_country_flag = card_blue_1_one
			}
			
			blue_1_two_p1_visible = {
				has_country_flag = card_blue_1_two
			}
			
			blue_2_one_p1_visible = {
				has_country_flag = card_blue_2_one
			}
			
			blue_2_two_p1_visible = {
				has_country_flag = card_blue_2_two
			}
			
			blue_3_one_p1_visible = {
				has_country_flag = card_blue_3_one
			}
			
			blue_3_two_p1_visible = {
				has_country_flag = card_blue_3_two
			}
			
			blue_4_one_p1_visible = {
				has_country_flag = card_blue_4_one
			}
			
			blue_4_two_p1_visible = {
				has_country_flag = card_blue_4_two
			}
			
			blue_5_one_p1_visible = {
				has_country_flag = card_blue_5_one
			}
			
			blue_5_two_p1_visible = {
				has_country_flag = card_blue_5_two
			}
			
			blue_6_one_p1_visible = {
				has_country_flag = card_blue_6_one
			}
			
			blue_6_two_p1_visible = {
				has_country_flag = card_blue_6_two
			}
			
			blue_7_one_p1_visible = {
				has_country_flag = card_blue_7_one
			}
			
			blue_7_two_p1_visible = {
				has_country_flag = card_blue_7_two
			}
			
			blue_8_one_p1_visible = {
				has_country_flag = card_blue_8_one
			}
			
			blue_8_two_p1_visible = {
				has_country_flag = card_blue_8_two
			}
			
			blue_9_one_p1_visible = {
				has_country_flag = card_blue_9_one
			}
			
			blue_9_two_p1_visible = {
				has_country_flag = card_blue_9_two
			}
			
			blue_block_one_p1_visible = {
				has_country_flag = card_blue_block_one
			}
			
			blue_block_two_p1_visible = {
				has_country_flag = card_blue_block_two
			}
			
			blue_reverse_one_p1_visible = {
				has_country_flag = card_blue_reverse_one
			}
			
			blue_reverse_two_p1_visible = {
				has_country_flag = card_blue_reverse_two
			}
			
			blue_plus_one_p1_visible = {
				has_country_flag = card_blue_plus_one
			}
			
			blue_plus_two_p1_visible = {
				has_country_flag = card_blue_plus_two
			}
			
			#yellow
			
			yellow_0_p1_visible = {
				has_country_flag = card_yellow_0
			}
			
			yellow_1_one_p1_visible = {
				has_country_flag = card_yellow_1_one
			}
			
			yellow_1_two_p1_visible = {
				has_country_flag = card_yellow_1_two
			}
			
			yellow_2_one_p1_visible = {
				has_country_flag = card_yellow_2_one
			}
			
			yellow_2_two_p1_visible = {
				has_country_flag = card_yellow_2_two
			}
			
			yellow_3_one_p1_visible = {
				has_country_flag = card_yellow_3_one
			}
			
			yellow_3_two_p1_visible = {
				has_country_flag = card_yellow_3_two
			}
			
			yellow_4_one_p1_visible = {
				has_country_flag = card_yellow_4_one
			}
			
			yellow_4_two_p1_visible = {
				has_country_flag = card_yellow_4_two
			}
			
			yellow_5_one_p1_visible = {
				has_country_flag = card_yellow_5_one
			}
			
			yellow_5_two_p1_visible = {
				has_country_flag = card_yellow_5_two
			}
			
			yellow_6_one_p1_visible = {
				has_country_flag = card_yellow_6_one
			}
			
			yellow_6_two_p1_visible = {
				has_country_flag = card_yellow_6_two
			}
			
			yellow_7_one_p1_visible = {
				has_country_flag = card_yellow_7_one
			}
			
			yellow_7_two_p1_visible = {
				has_country_flag = card_yellow_7_two
			}
			
			yellow_8_one_p1_visible = {
				has_country_flag = card_yellow_8_one
			}
			
			yellow_8_two_p1_visible = {
				has_country_flag = card_yellow_8_two
			}
			
			yellow_9_one_p1_visible = {
				has_country_flag = card_yellow_9_one
			}
			
			yellow_9_two_p1_visible = {
				has_country_flag = card_yellow_9_two
			}
			
			yellow_block_one_p1_visible = {
				has_country_flag = card_yellow_block_one
			}
			
			yellow_block_two_p1_visible = {
				has_country_flag = card_yellow_block_two
			}
			
			yellow_reverse_one_p1_visible = {
				has_country_flag = card_yellow_reverse_one
			}
			
			yellow_reverse_two_p1_visible = {
				has_country_flag = card_yellow_reverse_two
			}
			
			yellow_plus_one_p1_visible = {
				has_country_flag = card_yellow_plus_one
			}
			
			yellow_plus_two_p1_visible = {
				has_country_flag = card_yellow_plus_two
			}
			
			#green
			
			green_0_p1_visible = {
				has_country_flag = card_green_0
			}
			
			green_1_one_p1_visible = {
				has_country_flag = card_green_1_one
			}
			
			green_1_two_p1_visible = {
				has_country_flag = card_green_1_two
			}
			
			green_2_one_p1_visible = {
				has_country_flag = card_green_2_one
			}
			
			green_2_two_p1_visible = {
				has_country_flag = card_green_2_two
			}
			
			green_3_one_p1_visible = {
				has_country_flag = card_green_3_one
			}
			
			green_3_two_p1_visible = {
				has_country_flag = card_green_3_two
			}
			
			green_4_one_p1_visible = {
				has_country_flag = card_green_4_one
			}
			
			green_4_two_p1_visible = {
				has_country_flag = card_green_4_two
			}
			
			green_5_one_p1_visible = {
				has_country_flag = card_green_5_one
			}
			
			green_5_two_p1_visible = {
				has_country_flag = card_green_5_two
			}
			
			green_6_one_p1_visible = {
				has_country_flag = card_green_6_one
			}
			
			green_6_two_p1_visible = {
				has_country_flag = card_green_6_two
			}
			
			green_7_one_p1_visible = {
				has_country_flag = card_green_7_one
			}
			
			green_7_two_p1_visible = {
				has_country_flag = card_green_7_two
			}
			
			green_8_one_p1_visible = {
				has_country_flag = card_green_8_one
			}
			
			green_8_two_p1_visible = {
				has_country_flag = card_green_8_two
			}
			
			green_9_one_p1_visible = {
				has_country_flag = card_green_9_one
			}
			
			green_9_two_p1_visible = {
				has_country_flag = card_green_9_two
			}
			
			green_block_one_p1_visible = {
				has_country_flag = card_green_block_one
			}
			
			green_block_two_p1_visible = {
				has_country_flag = card_green_block_two
			}
			
			green_reverse_one_p1_visible = {
				has_country_flag = card_green_reverse_one
			}
			
			green_reverse_two_p1_visible = {
				has_country_flag = card_green_reverse_two
			}
			
			green_plus_one_p1_visible = {
				has_country_flag = card_green_plus_one
			}
			
			green_plus_two_p1_visible = {
				has_country_flag = card_green_plus_two
			}
			
			#wild
			
			wild_plus_one_p1_visible = {
				has_country_flag = card_wild_plus_one
			}
			
			wild_plus_two_p1_visible = {
				has_country_flag = card_wild_plus_two
			}
			
			wild_plus_three_p1_visible = {
				has_country_flag = card_wild_plus_three
			}
			
			wild_plus_four_p1_visible = {
				has_country_flag = card_wild_plus_four
			}
			
			##
			
			wild_color_one_p1_visible = {
				has_country_flag = card_wild_color_one
			}
			
			wild_color_two_p1_visible = {
				has_country_flag = card_wild_color_two
			}
			
			wild_color_three_p1_visible = {
				has_country_flag = card_wild_color_three
			}
			
			wild_color_four_p1_visible = {
				has_country_flag = card_wild_color_four
			}
			
			########################################################
			
			#P1 NAMES PERSPECTIVE
			
			player_1_p1p_visible = {
				has_country_flag = this_is_player_1
			}
			
			player_2_p1p_visible = {
				has_country_flag = this_is_player_1
			}
			
			player_3_p1p_visible = {
				has_country_flag = this_is_player_1
			}
			
			player_4_p1p_visible = {
				has_country_flag = this_is_player_1
			}
			
			player_5_p1p_visible = {
				has_country_flag = this_is_player_1
			}
			
			player_6_p1p_visible = {
				has_country_flag = this_is_player_1
			}
			
			#P2 NAMES PERSPECTIVE
			
			player_1_p2p_visible = {
				has_country_flag = this_is_player_2
			}
			
			player_2_p2p_visible = {
				has_country_flag = this_is_player_2
			}
			
			player_3_p2p_visible = {
				has_country_flag = this_is_player_2
			}
			
			player_4_p2p_visible = {
				has_country_flag = this_is_player_2
			}
			
			player_5_p2p_visible = {
				has_country_flag = this_is_player_2
			}
			
			player_6_p2p_visible = {
				has_country_flag = this_is_player_2
			}
			
			player_7_p2p_visible = {
				has_country_flag = this_is_player_2
			}
			
			#P3 NAMES PERSPECTIVE
			
			player_1_p3p_visible = {
				has_country_flag = this_is_player_3
			}
			
			player_2_p3p_visible = {
				has_country_flag = this_is_player_3
			}
			
			player_3_p3p_visible = {
				has_country_flag = this_is_player_3
			}
			
			player_4_p3p_visible = {
				has_country_flag = this_is_player_3
			}
			
			player_5_p3p_visible = {
				has_country_flag = this_is_player_3
			}
			
			player_6_p3p_visible = {
				has_country_flag = this_is_player_3
			}
			
			#P4 NAMES PERSPECTIVE			
			
			player_1_p4p_visible = {
				has_country_flag = this_is_player_4
			}
			
			player_2_p4p_visible = {
				has_country_flag = this_is_player_4
			}
			
			player_3_p4p_visible = {
				has_country_flag = this_is_player_4
			}
			
			player_4_p4p_visible = {
				has_country_flag = this_is_player_4
			}
			
			player_5_p4p_visible = {
				has_country_flag = this_is_player_4
			}
			
			player_6_p4p_visible = {
				has_country_flag = this_is_player_4
			}
			
			#P5 NAMES PERSPECTIVE
			
			player_1_p5p_visible = {
				has_country_flag = this_is_player_5
			}
			
			player_2_p5p_visible = {
				has_country_flag = this_is_player_5
			}
			
			player_3_p5p_visible = {
				has_country_flag = this_is_player_5
			}
			
			player_4_p5p_visible = {
				has_country_flag = this_is_player_5
			}
			
			player_5_p5p_visible = {
				has_country_flag = this_is_player_5
			}
			
			player_6_p5p_visible = {
				has_country_flag = this_is_player_5
			}
			
			#P6 NAMES PERSPECTIVE
			
			player_1_p6p_visible = {
				has_country_flag = this_is_player_6
			}
			
			player_2_p6p_visible = {
				has_country_flag = this_is_player_6
			}
			
			player_3_p6p_visible = {
				has_country_flag = this_is_player_6
			}
			
			player_4_p6p_visible = {
				has_country_flag = this_is_player_6
			}
			
			player_5_p6p_visible = {
				has_country_flag = this_is_player_6
			}
			
			player_6_p6p_visible = {
				has_country_flag = this_is_player_6
			}
			
			########################################################
			
			#P1 NUM OF CARDS PERSPECTIVE
			
			player_1_num_cards_p1p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_1
			}
			
			player_2_num_cards_p1p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_1
			}
			
			player_3_num_cards_p1p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_1
			}
			
			player_4_num_cards_p1p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_1
			}
			
			player_5_num_cards_p1p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_1
			}
			
			player_6_num_cards_p1p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_1
			}
			
			########################################################
			
			#P2 NUM OF CARDS PERSPECTIVE
			
			player_1_num_cards_p2p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_2
			}
			
			player_2_num_cards_p2p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_2
			}
			
			player_3_num_cards_p2p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_2
			}
			
			player_4_num_cards_p2p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_2
			}
			
			player_5_num_cards_p2p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_2
			}
			
			player_6_num_cards_p2p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_2
			}
			
			########################################################
			
			#P3 NUM OF CARDS PERSPECTIVE
			
			player_1_num_cards_p3p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_3
			}
			
			player_2_num_cards_p3p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_3
			}
			
			player_3_num_cards_p3p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_3
			}
			
			player_4_num_cards_p3p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_3
			}
			
			player_5_num_cards_p3p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_3
			}
			
			player_6_num_cards_p3p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_3
			}
			
			########################################################
			
			#P4 NUM OF CARDS PERSPECTIVE
			
			player_1_num_cards_p4p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_4
			}
			
			player_2_num_cards_p4p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_4
			}
			
			player_3_num_cards_p4p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_4
			}
			
			player_4_num_cards_p4p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_4
			}
			
			player_5_num_cards_p4p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_4
			}
			
			player_6_num_cards_p4p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_4
			}
			
			########################################################
			
			#P5 NUM OF CARDS PERSPECTIVE
			
			player_1_num_cards_p5p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_5
			}
			
			player_2_num_cards_p5p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_5
			}
			
			player_3_num_cards_p5p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_5
			}
			
			player_4_num_cards_p5p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_5
			}
			
			player_5_num_cards_p5p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_5
			}
			
			player_6_num_cards_p5p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_5
			}
			
			########################################################
			
			#P6 NUM OF CARDS PERSPECTIVE
			
			player_1_num_cards_p6p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_6
			}
			
			player_2_num_cards_p6p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_6
			}
			
			player_3_num_cards_p6p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_6
			}
			
			player_4_num_cards_p6p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_6
			}
			
			player_5_num_cards_p6p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_6
			}
			
			player_6_num_cards_p6p_visible = {
				is_debug = yes
				has_country_flag = this_is_player_6
			}
			
			########################################
			
			# PLAYER 1 COVERED CARDS PERSPECTIVE 
			
			#P2
			
			#COVERED CARDS 1-7
			
			covered_card1_p2_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p2_num_of_cards = 1
                }
			}
			
			covered_card2_p2_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p2_num_of_cards = 2
                }
			}
			
			covered_card3_p2_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p2_num_of_cards = 3
                }
			}
			
			covered_card4_p2_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p2_num_of_cards = 4
                }
			}
			
			covered_card5_p2_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p2_num_of_cards = 5
                }
			}
			
			covered_card6_p2_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p2_num_of_cards = 6
                }
			}
			
			covered_card7_p2_p1p_visible = {
				has_country_flag = this_is_player_1
				OR = {
					check_variable = {
					global.p2_num_of_cards = 7
					}
					check_variable = {
					global.p2_num_of_cards > 7
					}
				}
			}
			
			#P3
			
			#COVERED CARDS 1-7
			
			covered_card1_p3_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p3_num_of_cards = 1
                }
			}
			
			covered_card2_p3_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p3_num_of_cards = 2
                }
			}
			
			covered_card3_p3_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p3_num_of_cards = 3
                }
			}
			
			covered_card4_p3_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p3_num_of_cards = 4
                }
			}
			
			covered_card5_p3_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p3_num_of_cards = 5
                }
			}
			
			covered_card6_p3_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p3_num_of_cards = 6
                }
			}
			
			covered_card7_p3_p1p_visible = {
				has_country_flag = this_is_player_1
				OR = {
					check_variable = {
					global.p3_num_of_cards = 7
					}
					check_variable = {
					global.p3_num_of_cards > 7
					}
				}
			}
			
			#P4
			
			#COVERED CARDS 1-7
			
			covered_card1_p4_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p4_num_of_cards = 1
                }
			}
			
			covered_card2_p4_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p4_num_of_cards = 2
                }
			}
			
			covered_card3_p4_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p4_num_of_cards = 3
                }
			}
			
			covered_card4_p4_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p4_num_of_cards = 4
                }
			}
			
			covered_card5_p4_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p4_num_of_cards = 5
                }
			}
			
			covered_card6_p4_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p4_num_of_cards = 6
                }
			}
			
			covered_card7_p4_p1p_visible = {
				has_country_flag = this_is_player_1
				OR = {
					check_variable = {
					global.p4_num_of_cards = 7
					}
					check_variable = {
					global.p4_num_of_cards > 7
					}
				}
			}
			
			#P5
			
			#COVERED CARDS 1-7
			
			covered_card1_p5_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p5_num_of_cards = 1
                }
			}
			
			covered_card2_p5_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p5_num_of_cards = 2
                }
			}
			
			covered_card3_p5_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p5_num_of_cards = 3
                }
			}
			
			covered_card4_p5_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p5_num_of_cards = 4
                }
			}
			
			covered_card5_p5_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p5_num_of_cards = 5
                }
			}
			
			covered_card6_p5_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p5_num_of_cards = 6
                }
			}
			
			covered_card7_p5_p1p_visible = {
				has_country_flag = this_is_player_1
				OR = {
					check_variable = {
					global.p5_num_of_cards = 7
					}
					check_variable = {
					global.p5_num_of_cards > 7
					}
				}
			}
			
			#P6
			
			#COVERED CARDS 1-7
			
			covered_card1_p6_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p6_num_of_cards = 1
                }
			}
			
			covered_card2_p6_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p6_num_of_cards = 2
                }
			}
			
			covered_card3_p6_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p6_num_of_cards = 3
                }
			}
			
			covered_card4_p6_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p6_num_of_cards = 4
                }
			}
			
			covered_card5_p6_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p6_num_of_cards = 5
                }
			}
			
			covered_card6_p6_p1p_visible = {
				has_country_flag = this_is_player_1
				check_variable = {
					global.p6_num_of_cards = 6
                }
			}
			
			covered_card7_p6_p1p_visible = {
				has_country_flag = this_is_player_1
				OR = {
					check_variable = {
					global.p6_num_of_cards = 7
					}
					check_variable = {
					global.p6_num_of_cards > 7
					}
				}				
			}
			
			########################################
			
			# PLAYER 2 COVERED CARDS PERSPECTIVE 
			
			#P2
			
			#COVERED CARDS 1-7
			
			covered_card1_p2_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p3_num_of_cards = 1
                }
			}
			
			covered_card2_p2_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p3_num_of_cards = 2
                }
			}
			
			covered_card3_p2_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p3_num_of_cards = 3
                }
			}
			
			covered_card4_p2_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p3_num_of_cards = 4
                }
			}
			
			covered_card5_p2_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p3_num_of_cards = 5
                }
			}
			
			covered_card6_p2_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p3_num_of_cards = 6
                }
			}
			
			covered_card7_p2_p2p_visible = {
				has_country_flag = this_is_player_2
				OR = {
					check_variable = {
					global.p3_num_of_cards = 7
					}
					check_variable = {
					global.p3_num_of_cards > 7
					}
				}
			}
			
			#P3
			
			#COVERED CARDS 1-7
			
			covered_card1_p3_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p4_num_of_cards = 1
                }
			}
			
			covered_card2_p3_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p4_num_of_cards = 2
                }
			}
			
			covered_card3_p3_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p4_num_of_cards = 3
                }
			}
			
			covered_card4_p3_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p4_num_of_cards = 4
                }
			}
			
			covered_card5_p3_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p4_num_of_cards = 5
                }
			}
			
			covered_card6_p3_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p4_num_of_cards = 6
                }
			}
			
			covered_card7_p3_p2p_visible = {
				has_country_flag = this_is_player_2
				OR = {
					check_variable = {
					global.p4_num_of_cards = 7
					}
					check_variable = {
					global.p4_num_of_cards > 7
					}
				}
			}
			
			#P4
			
			#COVERED CARDS 1-7
			
			covered_card1_p4_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p5_num_of_cards = 1
                }
			}
			
			covered_card2_p4_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p5_num_of_cards = 2
                }
			}
			
			covered_card3_p4_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p5_num_of_cards = 3
                }
			}
			
			covered_card4_p4_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p5_num_of_cards = 4
                }
			}
			
			covered_card5_p4_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p5_num_of_cards = 5
                }
			}
			
			covered_card6_p4_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p5_num_of_cards = 6
                }
			}
			
			covered_card7_p4_p2p_visible = {
				has_country_flag = this_is_player_2
				OR = {
					check_variable = {
					global.p5_num_of_cards = 7
					}
					check_variable = {
					global.p5_num_of_cards > 7
					}
				}
			}
			
			#P5
			
			#COVERED CARDS 1-7
			
			covered_card1_p5_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p6_num_of_cards = 1
                }
			}
			
			covered_card2_p5_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p6_num_of_cards = 2
                }
			}
			
			covered_card3_p5_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p6_num_of_cards = 3
                }
			}
			
			covered_card4_p5_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p6_num_of_cards = 4
                }
			}
			
			covered_card5_p5_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p6_num_of_cards = 5
                }
			}
			
			covered_card6_p5_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p6_num_of_cards = 6
                }
			}
			
			covered_card7_p5_p2p_visible = {
				has_country_flag = this_is_player_2
				OR = {
					check_variable = {
					global.p6_num_of_cards = 7
					}
					check_variable = {
					global.p6_num_of_cards > 7
					}
				}
			}
			
			#P6
			
			#COVERED CARDS 1-7
			
			covered_card1_p6_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p1_num_of_cards = 1
                }
			}
			
			covered_card2_p6_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p1_num_of_cards = 2
                }
			}
			
			covered_card3_p6_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p1_num_of_cards = 3
                }
			}
			
			covered_card4_p6_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p1_num_of_cards = 4
                }
			}
			
			covered_card5_p6_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p1_num_of_cards = 5
                }
			}
			
			covered_card6_p6_p2p_visible = {
				has_country_flag = this_is_player_2
				check_variable = {
					global.p1_num_of_cards = 6
                }
			}
			
			covered_card7_p6_p2p_visible = {
				has_country_flag = this_is_player_2
				OR = {
					check_variable = {
					global.p1_num_of_cards = 7
					}
					check_variable = {
					global.p1_num_of_cards > 7
					}
				}				
			}			
			########################################
			
			# PLAYER 3 COVERED CARDS PERSPECTIVE 
			
			#P2
			
			#COVERED CARDS 1-7
			
			covered_card1_p2_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p4_num_of_cards = 1
                }
			}
			
			covered_card2_p2_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p4_num_of_cards = 2
                }
			}
			
			covered_card3_p2_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p4_num_of_cards = 3
                }
			}
			
			covered_card4_p2_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p4_num_of_cards = 4
                }
			}
			
			covered_card5_p2_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p4_num_of_cards = 5
                }
			}
			
			covered_card6_p2_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p4_num_of_cards = 6
                }
			}
			
			covered_card7_p2_p3p_visible = {
				has_country_flag = this_is_player_3
				OR = {
					check_variable = {
					global.p4_num_of_cards = 7
					}
					check_variable = {
					global.p4_num_of_cards > 7
					}
				}
			}
			
			#P3
			
			#COVERED CARDS 1-7
			
			covered_card1_p3_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p5_num_of_cards = 1
                }
			}
			
			covered_card2_p3_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p5_num_of_cards = 2
                }
			}
			
			covered_card3_p3_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p5_num_of_cards = 3
                }
			}
			
			covered_card4_p3_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p5_num_of_cards = 4
                }
			}
			
			covered_card5_p3_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p5_num_of_cards = 5
                }
			}
			
			covered_card6_p3_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p5_num_of_cards = 6
                }
			}
			
			covered_card7_p3_p3p_visible = {
				has_country_flag = this_is_player_3
				OR = {
					check_variable = {
					global.p5_num_of_cards = 7
					}
					check_variable = {
					global.p5_num_of_cards > 7
					}
				}
			}
			
			#P4
			
			#COVERED CARDS 1-7
			
			covered_card1_p4_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p6_num_of_cards = 1
                }
			}
			
			covered_card2_p4_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p6_num_of_cards = 2
                }
			}
			
			covered_card3_p4_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p6_num_of_cards = 3
                }
			}
			
			covered_card4_p4_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p6_num_of_cards = 4
                }
			}
			
			covered_card5_p4_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p6_num_of_cards = 5
                }
			}
			
			covered_card6_p4_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p6_num_of_cards = 6
                }
			}
			
			covered_card7_p4_p3p_visible = {
				has_country_flag = this_is_player_3
				OR = {
					check_variable = {
					global.p6_num_of_cards = 7
					}
					check_variable = {
					global.p6_num_of_cards > 7
					}
				}
			}
			
			#P5
			
			#COVERED CARDS 1-7
			
			covered_card1_p5_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p1_num_of_cards = 1
                }
			}
			
			covered_card2_p5_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p1_num_of_cards = 2
                }
			}
			
			covered_card3_p5_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p1_num_of_cards = 3
                }
			}
			
			covered_card4_p5_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p1_num_of_cards = 4
                }
			}
			
			covered_card5_p5_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p1_num_of_cards = 5
                }
			}
			
			covered_card6_p5_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p1_num_of_cards = 6
                }
			}
			
			covered_card7_p5_p3p_visible = {
				has_country_flag = this_is_player_3
				OR = {
					check_variable = {
					global.p1_num_of_cards = 7
					}
					check_variable = {
					global.p1_num_of_cards > 7
					}
				}
			}
			
			#P6
			
			#COVERED CARDS 1-7
			
			covered_card1_p6_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p2_num_of_cards = 1
                }
			}
			
			covered_card2_p6_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p2_num_of_cards = 2
                }
			}
			
			covered_card3_p6_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p2_num_of_cards = 3
                }
			}
			
			covered_card4_p6_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p2_num_of_cards = 4
                }
			}
			
			covered_card5_p6_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p2_num_of_cards = 5
                }
			}
			
			covered_card6_p6_p3p_visible = {
				has_country_flag = this_is_player_3
				check_variable = {
					global.p2_num_of_cards = 6
                }
			}
			
			covered_card7_p6_p3p_visible = {
				has_country_flag = this_is_player_3
				OR = {
					check_variable = {
					global.p2_num_of_cards = 7
					}
					check_variable = {
					global.p2_num_of_cards > 7
					}
				}				
			}			
			########################################
			
			# PLAYER 4 COVERED CARDS PERSPECTIVE 
			
			#P2
			
			#COVERED CARDS 1-7
			
			covered_card1_p2_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p5_num_of_cards = 1
                }
			}
			
			covered_card2_p2_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p5_num_of_cards = 2
                }
			}
			
			covered_card3_p2_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p5_num_of_cards = 3
                }
			}
			
			covered_card4_p2_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p5_num_of_cards = 4
                }
			}
			
			covered_card5_p2_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p5_num_of_cards = 5
                }
			}
			
			covered_card6_p2_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p5_num_of_cards = 6
                }
			}
			
			covered_card7_p2_p4p_visible = {
				has_country_flag = this_is_player_4
				OR = {
					check_variable = {
					global.p5_num_of_cards = 7
					}
					check_variable = {
					global.p5_num_of_cards > 7
					}
				}
			}
			
			#P3
			
			#COVERED CARDS 1-7
			
			covered_card1_p3_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p6_num_of_cards = 1
                }
			}
			
			covered_card2_p3_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p6_num_of_cards = 2
                }
			}
			
			covered_card3_p3_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p6_num_of_cards = 3
                }
			}
			
			covered_card4_p3_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p6_num_of_cards = 4
                }
			}
			
			covered_card5_p3_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p6_num_of_cards = 5
                }
			}
			
			covered_card6_p3_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p6_num_of_cards = 6
                }
			}
			
			covered_card7_p3_p4p_visible = {
				has_country_flag = this_is_player_4
				OR = {
					check_variable = {
					global.p6_num_of_cards = 7
					}
					check_variable = {
					global.p6_num_of_cards > 7
					}
				}
			}
			
			#P4
			
			#COVERED CARDS 1-7
			
			covered_card1_p4_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p1_num_of_cards = 1
                }
			}
			
			covered_card2_p4_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p1_num_of_cards = 2
                }
			}
			
			covered_card3_p4_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p1_num_of_cards = 3
                }
			}
			
			covered_card4_p4_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p1_num_of_cards = 4
                }
			}
			
			covered_card5_p4_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p1_num_of_cards = 5
                }
			}
			
			covered_card6_p4_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p1_num_of_cards = 6
                }
			}
			
			covered_card7_p4_p4p_visible = {
				has_country_flag = this_is_player_4
				OR = {
					check_variable = {
					global.p1_num_of_cards = 7
					}
					check_variable = {
					global.p1_num_of_cards > 7
					}
				}
			}
			
			#P5
			
			#COVERED CARDS 1-7
			
			covered_card1_p5_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p2_num_of_cards = 1
                }
			}
			
			covered_card2_p5_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p2_num_of_cards = 2
                }
			}
			
			covered_card3_p5_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p2_num_of_cards = 3
                }
			}
			
			covered_card4_p5_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p2_num_of_cards = 4
                }
			}
			
			covered_card5_p5_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p2_num_of_cards = 5
                }
			}
			
			covered_card6_p5_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p2_num_of_cards = 6
                }
			}
			
			covered_card7_p5_p4p_visible = {
				has_country_flag = this_is_player_4
				OR = {
					check_variable = {
					global.p2_num_of_cards = 7
					}
					check_variable = {
					global.p2_num_of_cards > 7
					}
				}
			}
			
			#P6
			
			#COVERED CARDS 1-7
			
			covered_card1_p6_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p3_num_of_cards = 1
                }
			}
			
			covered_card2_p6_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p3_num_of_cards = 2
                }
			}
			
			covered_card3_p6_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p3_num_of_cards = 3
                }
			}
			
			covered_card4_p6_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p3_num_of_cards = 4
                }
			}
			
			covered_card5_p6_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p3_num_of_cards = 5
                }
			}
			
			covered_card6_p6_p4p_visible = {
				has_country_flag = this_is_player_4
				check_variable = {
					global.p3_num_of_cards = 6
                }
			}
			
			covered_card7_p6_p4p_visible = {
				has_country_flag = this_is_player_4
				OR = {
					check_variable = {
					global.p3_num_of_cards = 7
					}
					check_variable = {
					global.p3_num_of_cards > 7
					}
				}				
			}			
			########################################
			
			# PLAYER 5 COVERED CARDS PERSPECTIVE 
			
			#P2
			
			#COVERED CARDS 1-7
			
			covered_card1_p2_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p6_num_of_cards = 1
                }
			}
			
			covered_card2_p2_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p6_num_of_cards = 2
                }
			}
			
			covered_card3_p2_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p6_num_of_cards = 3
                }
			}
			
			covered_card4_p2_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p6_num_of_cards = 4
                }
			}
			
			covered_card5_p2_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p6_num_of_cards = 5
                }
			}
			
			covered_card6_p2_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p6_num_of_cards = 6
                }
			}
			
			covered_card7_p2_p5p_visible = {
				has_country_flag = this_is_player_5
				OR = {
					check_variable = {
					global.p6_num_of_cards = 7
					}
					check_variable = {
					global.p6_num_of_cards > 7
					}
				}
			}
			
			#P3
			
			#COVERED CARDS 1-7
			
			covered_card1_p3_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p1_num_of_cards = 1
                }
			}
			
			covered_card2_p3_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p1_num_of_cards = 2
                }
			}
			
			covered_card3_p3_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p1_num_of_cards = 3
                }
			}
			
			covered_card4_p3_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p1_num_of_cards = 4
                }
			}
			
			covered_card5_p3_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p1_num_of_cards = 5
                }
			}
			
			covered_card6_p3_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p1_num_of_cards = 6
                }
			}
			
			covered_card7_p3_p5p_visible = {
				has_country_flag = this_is_player_5
				OR = {
					check_variable = {
					global.p1_num_of_cards = 7
					}
					check_variable = {
					global.p1_num_of_cards > 7
					}
				}
			}
			
			#P4
			
			#COVERED CARDS 1-7
			
			covered_card1_p4_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p2_num_of_cards = 1
                }
			}
			
			covered_card2_p4_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p2_num_of_cards = 2
                }
			}
			
			covered_card3_p4_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p2_num_of_cards = 3
                }
			}
			
			covered_card4_p4_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p2_num_of_cards = 4
                }
			}
			
			covered_card5_p4_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p2_num_of_cards = 5
                }
			}
			
			covered_card6_p4_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p2_num_of_cards = 6
                }
			}
			
			covered_card7_p4_p5p_visible = {
				has_country_flag = this_is_player_5
				OR = {
					check_variable = {
					global.p2_num_of_cards = 7
					}
					check_variable = {
					global.p2_num_of_cards > 7
					}
				}
			}
			
			#P5
			
			#COVERED CARDS 1-7
			
			covered_card1_p5_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p3_num_of_cards = 1
                }
			}
			
			covered_card2_p5_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p3_num_of_cards = 2
                }
			}
			
			covered_card3_p5_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p3_num_of_cards = 3
                }
			}
			
			covered_card4_p5_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p3_num_of_cards = 4
                }
			}
			
			covered_card5_p5_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p3_num_of_cards = 5
                }
			}
			
			covered_card6_p5_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p3_num_of_cards = 6
                }
			}
			
			covered_card7_p5_p5p_visible = {
				has_country_flag = this_is_player_5
				OR = {
					check_variable = {
					global.p3_num_of_cards = 7
					}
					check_variable = {
					global.p3_num_of_cards > 7
					}
				}
			}
			
			#P6
			
			#COVERED CARDS 1-7
			
			covered_card1_p6_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p4_num_of_cards = 1
                }
			}
			
			covered_card2_p6_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p4_num_of_cards = 2
                }
			}
			
			covered_card3_p6_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p4_num_of_cards = 3
                }
			}
			
			covered_card4_p6_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p4_num_of_cards = 4
                }
			}
			
			covered_card5_p6_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p4_num_of_cards = 5
                }
			}
			
			covered_card6_p6_p5p_visible = {
				has_country_flag = this_is_player_5
				check_variable = {
					global.p4_num_of_cards = 6
                }
			}
			
			covered_card7_p6_p5p_visible = {
				has_country_flag = this_is_player_5
				OR = {
					check_variable = {
					global.p4_num_of_cards = 7
					}
					check_variable = {
					global.p4_num_of_cards > 7
					}
				}				
			}			
			########################################
			
			# PLAYER 6 COVERED CARDS PERSPECTIVE 
			
			#P2
			
			#COVERED CARDS 1-7
			
			covered_card1_p2_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p1_num_of_cards = 1
                }
			}
			
			covered_card2_p2_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p1_num_of_cards = 2
                }
			}
			
			covered_card3_p2_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p1_num_of_cards = 3
                }
			}
			
			covered_card4_p2_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p1_num_of_cards = 4
                }
			}
			
			covered_card5_p2_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p1_num_of_cards = 5
                }
			}
			
			covered_card6_p2_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p1_num_of_cards = 6
                }
			}
			
			covered_card7_p2_p6p_visible = {
				has_country_flag = this_is_player_6
				OR = {
					check_variable = {
					global.p1_num_of_cards = 7
					}
					check_variable = {
					global.p1_num_of_cards > 7
					}
				}
			}
			
			#P3
			
			#COVERED CARDS 1-7
			
			covered_card1_p3_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p2_num_of_cards = 1
                }
			}
			
			covered_card2_p3_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p2_num_of_cards = 2
                }
			}
			
			covered_card3_p3_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p2_num_of_cards = 3
                }
			}
			
			covered_card4_p3_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p2_num_of_cards = 4
                }
			}
			
			covered_card5_p3_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p2_num_of_cards = 5
                }
			}
			
			covered_card6_p3_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p2_num_of_cards = 6
                }
			}
			
			covered_card7_p3_p6p_visible = {
				has_country_flag = this_is_player_6
				OR = {
					check_variable = {
					global.p2_num_of_cards = 7
					}
					check_variable = {
					global.p2_num_of_cards > 7
					}
				}
			}
			
			#P4
			
			#COVERED CARDS 1-7
			
			covered_card1_p4_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p3_num_of_cards = 1
                }
			}
			
			covered_card2_p4_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p3_num_of_cards = 2
                }
			}
			
			covered_card3_p4_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p3_num_of_cards = 3
                }
			}
			
			covered_card4_p4_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p3_num_of_cards = 4
                }
			}
			
			covered_card5_p4_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p3_num_of_cards = 5
                }
			}
			
			covered_card6_p4_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p3_num_of_cards = 6
                }
			}
			
			covered_card7_p4_p6p_visible = {
				has_country_flag = this_is_player_6
				OR = {
					check_variable = {
					global.p3_num_of_cards = 7
					}
					check_variable = {
					global.p3_num_of_cards > 7
					}
				}
			}
			
			#P5
			
			#COVERED CARDS 1-7
			
			covered_card1_p5_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p4_num_of_cards = 1
                }
			}
			
			covered_card2_p5_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p4_num_of_cards = 2
                }
			}
			
			covered_card3_p5_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p4_num_of_cards = 3
                }
			}
			
			covered_card4_p5_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p4_num_of_cards = 4
                }
			}
			
			covered_card5_p5_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p4_num_of_cards = 5
                }
			}
			
			covered_card6_p5_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p4_num_of_cards = 6
                }
			}
			
			covered_card7_p5_p6p_visible = {
				has_country_flag = this_is_player_6
				OR = {
					check_variable = {
					global.p4_num_of_cards = 7
					}
					check_variable = {
					global.p4_num_of_cards > 7
					}
				}
			}
			
			#P6
			
			#COVERED CARDS 1-7
			
			covered_card1_p6_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p5_num_of_cards = 1
                }
			}
			
			covered_card2_p6_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p5_num_of_cards = 2
                }
			}
			
			covered_card3_p6_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p5_num_of_cards = 3
                }
			}
			
			covered_card4_p6_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p5_num_of_cards = 4
                }
			}
			
			covered_card5_p6_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p5_num_of_cards = 5
                }
			}
			
			covered_card6_p6_p6p_visible = {
				has_country_flag = this_is_player_6
				check_variable = {
					global.p5_num_of_cards = 6
                }
			}
			
			covered_card7_p6_p6p_visible = {
				has_country_flag = this_is_player_6
				OR = {
					check_variable = {
					global.p5_num_of_cards = 7
					}
					check_variable = {
					global.p5_num_of_cards > 7
					}
				}				
			}			
			########################################################
			
			
		}
	}
}