private boolean IsOtherPiece(int oldX, int oldY, int newX, int newY){
		int betX =  (oldX + newX) / 2;	//get the x coordinate of the space between
		int betY = (oldY + newY) / 2;	//get the y coordinate of the space between
		
		if(newBoard[betY][betX].IsEmpty() == true){	//if the space between is empty the jump is invalid
			return false;
		}
		
		if(newBoard[betY][betX].GetPiecePlayer() != newBoard[oldY][oldX].GetPiecePlayer()){	//if the piece in the space between belongs to the other player
			
			//reduce the number of pieces for the player that was jumped
			if(newBoard[betY][betX].GetPiecePlayer() == 1){
				p1Pieces--;
			}
			else{
				p2Pieces--;
			}
			
			
			newBoard[betY][betX].SetEmpty();	//remove the piece that was jumped
			return true;
		}
		else{	//if the piece being jumped belongs to the player jumping
			System.out.println("You cannot jump your own piece!");
			return false;
		}
	}