I'm really new to java, and just programming in general. I am trying to make a simple "story game".
I want the program to start again where I commented "starting again point `if walk.equals("b")` (second time)" 

Here is my code:
P.S. sorry if it is poorly written

```
import java.util.*;

public class leikur1 {

   public static void main(String[] args) { 

     Scanner scan = new Scanner(System.in);
     System.out.println("|---------Welcome to the adventure------------|"); 
     System.out.println("Please enter Name"); // inputs name
     String nafn = scan.nextLine();
     nafn = nafn.toLowerCase();

     System.out.println("Gender, male or female");
     String kyn = scan.nextLine();
     kyn = kyn.toLowerCase();
        while((!kyn.equals("male")) && (!kyn.equals("female")) )  //bara haegt ad velja male eda female
        {
          System.out.println("That is not valid input" );
          kyn = scan.nextLine();
          kyn = kyn.toLowerCase();
        }

     System.out.println("Are you ready for the adventure"); 
     String leikur = scan.nextLine();
     leikur = leikur.toLowerCase(); 
         while((!leikur.equals("yes")) && (!leikur.equals("no")) )  //impossible to input something else than male or female
         {
           System.out.println("That is not valid input" );
           leikur = scan.nextLine();
           leikur = leikur.toLowerCase();
         } 
     if(leikur.equals("no"))
          {
            System.out.println("Thank you anyway"); //if input = no program ends
           }

     // if input = yes the game begins
     else
          {
           System.out.println("Write Start to begin or Quit to exit"); 
     String start = scan.nextLine();
     start = start.toLowerCase();

     String gender;  
     if(kyn.equals("male"))
          {
          gender = "he"; 
          }
    else
    {
      gender = "she";
              }

     while((!start.equals("start")) && (!start.equals("quit")) )
     {
       System.out.println("That is not valid input" );
       start = scan.nextLine();
       start = start.toLowerCase();
     }

     if(start.equals("start")) 
     {
     System.out.println("Walking instructions: left - l    right - r     forward - f      back -  b    down - d     up - u\n");  
     System.out.println(nafn + " is in a abandoned house late at night, stuck in the basement with no light.\n");
     System.out.println("In wich way should " + gender + " go to find his way to the stairs?"   ); **// starting again point if walk.equals("b") (second time)**
     String walk = scan.nextLine();
     walk = walk.toLowerCase();

     //////////
     while((!walk.equals("f")) && (!walk.equals("b")) ) // not possible bcus of walls or no stairs
     {
       System.out.println("That is not possible" );
       walk = scan.nextLine();
     }

     if(walk.equals("f"))
          {
           System.out.println("Great choice, " + gender + " found the stairs right away. Should"+gender+" go upstairs or go back?" );
          }

     else if (walk.equals("b"))
          {
           System.out.println("Oh boy! " + nafn +" got stuck in a beartrap and died... GAME OVER" );
          }
   /////////

     walk = scan.nextLine();
     while(!walk.equals("u") && !walk.equals("b") )
     {
       System.out.println("That is not possible" );
       walk = scan.nextLine();
     }

     if(walk.equals("u"))
     {
     System.out.println("Excelent!" + nafn + " is now upstairs" );
     }

     **else if(walk.equals("b") )
     {
     System.out.println("Now " + nafn + " is at stage 1 again" );
     }**
     //////////////

     // code 4 the game should be here above
     }
     else if(start.equals("quit"))
     {
     System.out.println("Thank you anyway");
     }

    }        

  }
}

```