NEED HELP WITH | Memory Game, with Joystick

Hello everyone!

I have some trouble with my code, my program won’t start at all when I upload it to my arduino but I can’t seem to find what I did wrong?

Could you help?

//Joystick
const int X_pin = A4;
const int Y_pin = A5;
int X_Value = 0;//Waarde X-Axis Joystick
int Y_Value = 0;//Waarde Y-Axis Joystick

//leds
const int led_Rood = 13;
const int led_Groen = 12;
const int led_Blauw = 11;
const int led_Geel = 10;
//componenten
const int buzzer = 4;

const int level_Max = 20;
int level[level_Max];
int level_Index = 0;



void setup() {
  randomSeed(analogRead(0));
  pinMode (led_Rood, OUTPUT);
  pinMode (led_Groen, OUTPUT);
  pinMode (led_Blauw, OUTPUT);
  pinMode (led_Geel, OUTPUT);

  pinMode(buzzer, OUTPUT);

  Serial.begin(9600);
  Serial.println("Het spel is begonnen!");
}
void loop() {
 
  X_Value = analogRead(X_pin);
  Y_Value = analogRead(Y_pin);

  int joy_Blauw = (X_Value == 0);
  int joy_Groen = (X_Value == 1023);
  int joy_Geel = (Y_Value == 1023);
  int joy_Rood = (Y_Value == 0);
  int huidig = 0;
  int random_leds = random(10,14);
  level[level_Index] = random_leds;
  
  delay(5000);
  while (huidig < level_Index){
    int laatste_input = 0; // laatste input van de joystick
    while ((joy_Rood || joy_Geel || joy_Groen || joy_Blauw )== HIGH){
      if (joy_Rood == HIGH){
        laatste_input = led_Rood;
        digitalWrite(led_Rood, HIGH);
      }else{
        digitalWrite(led_Rood, LOW);
      }
        if (joy_Geel == HIGH){
        laatste_input = led_Geel;
        digitalWrite(led_Geel, HIGH);
      }else{
        digitalWrite(led_Geel, LOW);
      }
        if (joy_Groen == HIGH){
        laatste_input = led_Groen;
        digitalWrite(led_Groen, HIGH);
      }else{
        digitalWrite(led_Groen, LOW);
      }
        if (joy_Blauw == HIGH){
        laatste_input = led_Blauw;
        digitalWrite(led_Blauw, HIGH);
      }else{
        digitalWrite(led_Blauw, LOW);
      }
    }
    digitalWrite(laatste_input, LOW);
    if(laatste_input !=0){
      if(level[huidig] != laatste_input){
        reset();
        laatste_input = 0;
        break;
      }else{
        huidig++;
        laatste_input =0;
      }
    }
  }
}
void reset(){
  for (int i = 0; i < 14; i++){
    digitalWrite(led_Rood, HIGH);
    digitalWrite(led_Groen, HIGH);
    digitalWrite(led_Geel, HIGH);
    digitalWrite(led_Blauw, HIGH);
    delay(500);
    digitalWrite(led_Rood, LOW);
    digitalWrite(led_Groen, LOW);
    digitalWrite(led_Geel, LOW);
    digitalWrite(led_Blauw, LOW);
    delay(500);
    
  }
  level_Index = 0;
  delay(3000);
}

Thank you in advance!

Friendly greeting

Blueshirt97

Start with this:

//leds
const int led_Rood = 13;
const int led_Groen = 12;
const int led_Blauw = 11;
const int led_Geel = 10;

//componenten
const int buzzer = 4;

void setup() {
  pinMode (led_Rood, OUTPUT);
  pinMode (led_Groen, OUTPUT);
  pinMode (led_Blauw, OUTPUT);
  pinMode (led_Geel, OUTPUT);
  pinMode(buzzer, OUTPUT);
  pinMode(LED_BUILTIN, OUTPUT);
  Serial.begin(9600);
  Serial.println("Begin altijd met een blink test!");
}

void loop() {
  digitalWrite(led_Rood, HIGH);
  digitalWrite(led_Groen, HIGH);
  digitalWrite(led_Geel, HIGH);
  digitalWrite(led_Blauw, HIGH);
  digitalWrite(buzzer, HIGH);
  digitalWrite(LED_BUILTIN, HIGH);
  delay(500);
  digitalWrite(led_Rood, LOW);
  digitalWrite(led_Groen, LOW);
  digitalWrite(led_Geel, LOW);
  digitalWrite(led_Blauw, LOW);
  digitalWrite(buzzer, LOW);
  digitalWrite(LED_BUILTIN, LOW);
  delay(500);
}

This should blink your LEDs and buzz your buzzer, and also blink the built-in LED showing you it really works.

If this doesn't blink your LEDs and buzzes your buzzer, your wiring is wrong.