public static void main(String[] args) {
		
		int size;
		char YN;
		char[] gameArray; //array that stores the "face" value
		boolean[] flipped; //array that mirrors and stores which values have been matches in the gameArray
		Scanner input = new Scanner(System.in);
		
		for (;;) {
			
			System.out.print("Please enter the size of the game (even integer between 2 and 52): ");
			size = input.nextInt(); //gets the game size from the user
			
			while (!validate_size(size)){ 
				
				//passes the value to be validated as whether it is indeed an even integer
				//that is between 2 and 52
				size = input.nextInt();
				
			}
			
			//create the game arrays with the provided size
			gameArray = new char[size];
			flipped = new boolean[size];
			
			create_array(gameArray, flipped); //sets up the game
	
			play_game(input, gameArray, flipped); //play the game
			
			System.out.print("Would you like to play another? Y/N: ");
			YN = input.next().charAt(0); //at the end, checks if you want to play another
			
			if (YN == 'N' || YN == 'n') {
				//if no, exit out of the game loop
				break;
				
			}
		}
		
		input.close();
	}