CYCLONE ARCADE GAME

Im super new to arduino and codes and im trying to set up the cyclone LED game and this is my code
the slide switch is controlling the on/off but i need the Pushbutton to stop the LED and keep the LED lit and
keep going once its pressed again. yall get the idea… any help would be appreciated

i dont even know how to add the pics like yall do in the forums so i put them into the attachments
the end just continues but for length reason it cuts off here

//Given each LED pin a name and don’t let it be changed by program:
const int LED1 = 13;
const int LED2 = 12;
const int LED3 = 11;
const int LED4 = 10;
const int LED5 = 9;
const int LED6 = 8;
const int LED7 = 7;
const int LED8 = 6;
const int LED9 = 5;
const int LED10 = 4;
int inPin = 2; // choose the input pin (for a pushbutton)
int val = 0; // variable for reading the pin status
int buttonPin = 3;
int buttonState = 0;
// the setup routine runs once when you press reset:
void setup() {
//initialize the digital pins as an output
pinMode(inPin, INPUT); // declare pushbutton as input
pinMode(buttonPin, INPUT);
pinMode(LED1, OUTPUT);
pinMode(LED2, OUTPUT);
pinMode(LED3, OUTPUT);
pinMode(LED4, OUTPUT);
pinMode(LED5, OUTPUT);
pinMode(LED6, OUTPUT);
pinMode(LED7, OUTPUT);
pinMode(LED8, OUTPUT);
pinMode(LED9, OUTPUT);
pinMode(LED10,OUTPUT);

}
// the loop routine runs over and over again forever:
void loop(){
val = digitalRead(inPin); // read input value
if (val == HIGH) // check if the input is HIGH (button released)
// read the pushbutton input pin:

{
digitalWrite(LED1, HIGH); // turn the LED on (HIGH is the voltage level = 5V = ON)
digitalWrite(LED2, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
digitalWrite(LED3, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
digitalWrite(LED4, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
digitalWrite(LED5, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
digitalWrite(LED6, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
digitalWrite(LED7, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
digitalWrite(LED8, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
digitalWrite(LED9, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
digitalWrite(LED10,LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
delay(50); // wait for 100 milliseconds
digitalWrite(LED1, LOW); /// turn the LED off by making the voltage LOW (= 0V = OFF)
digitalWrite(LED2, HIGH); // turn the LED on (HIGH is the voltage level = 5V = ON)
digitalWrite(LED3, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
digitalWrite(LED4, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
digitalWrite(LED5, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
digitalWrite(LED6, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
digitalWrite(LED7, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
digitalWrite(LED8, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
digitalWrite(LED9, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
digitalWrite(LED10,LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
delay(50); // wait for 100 milliseconds

}

If you're too lazy to read the sticky "How to use this forum - please read" at the top of the forum page, then I'm WAY too busy to download nearly 1.6MB of your stupid screenshots. Read the sticky and post your code properly - in code tags.

Pete

//Given each LED pin a name and don't let it be changed by program:
const int LED1 = 13;
const int LED2 = 12;
const int LED3 = 11;
const int LED4 = 10;
const int LED5 = 9;
const int LED6 = 8;
const int LED7 = 7;
const int LED8 = 6;
const int LED9 = 5;
const int LED10 = 4;    
int inPin = 2;   // choose the input pin (for a pushbutton)
int val = 0;     // variable for reading the pin status
int buttonPin = 3;
int buttonState = 0;
// the setup routine runs once when you press reset:
void setup() {
  //initialize the digital pins as an output
  pinMode(inPin, INPUT);    // declare pushbutton as input
  pinMode(buttonPin, INPUT);
  pinMode(LED1, OUTPUT);
  pinMode(LED2, OUTPUT);
  pinMode(LED3, OUTPUT);
  pinMode(LED4, OUTPUT);
  pinMode(LED5, OUTPUT);
  pinMode(LED6, OUTPUT);
  pinMode(LED7, OUTPUT);
  pinMode(LED8, OUTPUT);
  pinMode(LED9, OUTPUT);
  pinMode(LED10,OUTPUT);

}
// the loop routine runs over and over again forever:
void loop(){
   val = digitalRead(inPin);  // read input value
  if (val == HIGH)         // check if the input is HIGH (button released)
  // read the pushbutton input pin:

 {    
  digitalWrite(LED1, HIGH); // turn the LED on (HIGH is the voltage level = 5V = ON)
  digitalWrite(LED2, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
  digitalWrite(LED3, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
  digitalWrite(LED4, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
  digitalWrite(LED5, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
  digitalWrite(LED6, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
  digitalWrite(LED7, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
  digitalWrite(LED8, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
  digitalWrite(LED9, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
  digitalWrite(LED10,LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)  
  delay(50); // wait for 100 milliseconds
  digitalWrite(LED1, LOW); /// turn the LED off by making the voltage LOW (= 0V = OFF)
  digitalWrite(LED2, HIGH); // turn the LED on (HIGH is the voltage level = 5V = ON)
  digitalWrite(LED3, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
  digitalWrite(LED4, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
  digitalWrite(LED5, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
  digitalWrite(LED6, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
  digitalWrite(LED7, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
  digitalWrite(LED8, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
  digitalWrite(LED9, LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
  digitalWrite(LED10,LOW); // turn the LED off by making the voltage LOW (= 0V = OFF)
  delay(50); // wait for 100 milliseconds

   }