private void GetMoveIndex(){
		int failedAttempts = 0;
		
		while(!correctInput && failedAttempts != 3){	//loop until the user enters a valid set of coordinates to move the piece to or until 3 failed attempts have been made
			try{
				//prompt the user to enter the x and y coordinates as integers for the square they want to move to
				System.out.print("Choose a sqaure to move to by entering it's x and y coordinates (ex. \"1 4\"): ");
				moveX = sc.nextInt();
				moveY = sc.nextInt();
				
				if(board.MovePiece(pieceX, pieceY, moveX, moveY)){	//if the movement of the chosen piece to the given square is valid
					correctInput = true;
				}
				else{	// if the movement of the chosen piece to the given square is not valid
					failedAttempts++;
					sc.nextLine();	//clear the standard input scanner
				}
			}
			catch(InputMismatchException e){	//if the user enters a non integer value for the input
				System.out.print("Incorrect input!\n");
				sc.nextLine();	//clear the standard input scanner
				
			}
		}
		return;
	}