private static int mainMenu(int condition, Scanner scan) {
		//Check if the selected option is valid, if true then skip straight to the return statement else run through the selection process
		if (condition == 0) {
			System.out.println("What do you want to do? "
					+ "\n1) Start playing "
					+ "\n2) Read the rules");
			System.out.print(">");
			
			int option = scan.nextInt();
				
			switch (option) {
			case 1:
				return 1;
			case 2:
				return 2;
			default: 
				return 0;
			}
		}
		
		//Recursively use it to select the mode
		while (condition == 0) {
			condition = mainMenu(condition, scan);
		}
		
		//Once valid return the mode
		return condition;
	}