private static void wordquiz() {
		for (int i = 0; i < 40; ++i) System.out.println();
		int max = database.size() - 1;
		success = new SList();
		failure = new SList();
		total = new SList();
		String guess;
		sc = new Scanner(System.in);
		System.out.println("Random word's deffinition is displayed below. You have to guess the word.");
		if(max > 0){
			while(true){
				int randomInt = randomGenerator.nextInt(max);
				String takeWord = database.getWord(randomInt);
				System.out.println();
				System.out.println(database.getDeffinition(takeWord));
				//System.out.println(takeWord);
				total.insertFront(takeWord);
				System.out.print("Enter your guess: ");
				guess = sc.nextLine();
				guess = guess.toLowerCase();
				if(guess.equals(takeWord.toLowerCase())){
					System.out.println("Congratulations! Your guess is correct!");
					success.insertFront(takeWord);
				} else {
					System.out.println("You failed :(");
					failure.insertFront(takeWord);
				}
				System.out.println();
				System.out.print("Do you want to continue? y or n: ");
				String answer = sc.nextLine();
				if(answer.equals("n"))break;
			}
		} else {
			System.out.println("Error! Dictionary is not loaded or created!");
		}
		System.out.println("Your result is:");
		int t = total.length();
		int s = success.length();
		int f = failure.length();
		System.out.println("Total words played: " + t);
		System.out.println("Guessed correctly: " + s);
		System.out.println("Failed: " + f);
	}