public static boolean getYesOrNoAnswer(){
        Scanner scanner = new Scanner(System.in);
        String answer;
        while (true){
            answer = scanner.nextLine();
            if (answer.equals("yes")){
                return true;
            }
            if (answer.equals("no")){
                return false;
            } else {
                System.out.println("Wrong answer, please enter yes or no");
            }
        }

    }