import java.util.ArrayList;

public class Main{
    public static void main(String[] args) {
        ArrayList<String> colors = new ArrayList<String>();
        colors.add("Turquoise");
        colors.add("Orange");
        colors.add("Yellow");
        colors.add("Red");
        colors.add("Green");
        colors.add("Violet");
        colors.add("Pink");
        colors.add("Grey");
        colors.add("Black");
        colors.add("Blue");
        colors.add("Purple");
        colors.add("Gold");
        colors.add("Silver");
        colors.add("White");
        colors.add("Brown");
        colors.add("Maroon");

        for(int i=0; colors.size() > 1; i++){
         
            Scanner favoriteColor = new Scanner(System.in);  // Create a Scanner object
            System.out.print("Pick the better one ");
            System.out.print(colors.get(0));
            System.out.print(" or ");
            System.out.print(colors.get(1));
            System.out.print(" (1-2): ");

            int option = favoriteColor.nextInt(); // storing the option as the variable
            System.out.println(option);
            String name = ""; //Creating a string variable for the name of the image
            if(option == 1){
                System.out.println("You picked the color: " + colors.get(0));
                colors.remove(1);
            }
            else if(option == 2){
                System.out.println("You picked the color: " + colors.get(1));
                colors.remove(0);
            }
            else{
                System.out.println("Unexpected choice, try again.");
            }
          
        }
        // checking for favorite color
        System.out.println("Your favorite color is: " + colors.get(0));
        
        if(colors.get(0).equals("Blue")){
            System.out.println("Thats also my favorite color!");
        }
        colors.clear();
    
    }

    public static void favoriteColor(String[] args){
        
    }
}

Main.main(null);
Pick the better one Turquoise or Orange (1-2): 1
You picked the color: Turquoise
Pick the better one Turquoise or Yellow (1-2): 1
You picked the color: Turquoise
Pick the better one Turquoise or Red (1-2): 1
You picked the color: Turquoise
Pick the better one Turquoise or Green (1-2): 1
You picked the color: Turquoise
Pick the better one Turquoise or Violet (1-2): 1
You picked the color: Turquoise
Pick the better one Turquoise or Pink (1-2): 1
You picked the color: Turquoise
Pick the better one Turquoise or Grey (1-2): 1
You picked the color: Turquoise
Pick the better one Turquoise or Black (1-2): 1
You picked the color: Turquoise
Pick the better one Turquoise or Blue (1-2): 2
You picked the color: Blue
Pick the better one Blue or Purple (1-2): 1
You picked the color: Blue
Pick the better one Blue or Gold (1-2): 1
You picked the color: Blue
Pick the better one Blue or Silver (1-2): 1
You picked the color: Blue
Pick the better one Blue or White (1-2): 1
You picked the color: Blue
Pick the better one Blue or Brown (1-2): 1
You picked the color: Blue
Pick the better one Blue or Maroon (1-2): 1
You picked the color: Blue
Your favorite color is: Blue
Thats also my favorite color!