public boolean CanJump(int oldX, int oldY, int newX, int newY){
		if(!newBoard[oldY][oldX].IsPieceKing()){	//if the piece to be moved is not a king
			
			if(newBoard[oldY][oldX].GetPiecePlayer() == 1){	//if the piece belongs to player 1
				if((newX == oldX + 2 || newX == oldX - 2) && (newY == oldY - 2) ){	//if the piece is making a valid jump (2 squares away diagonally 
					if(newBoard[newY][newX].IsAvail() && IsOtherPiece(oldX, oldY, newX, newY)){	//if the square moving to is free and the piece between belongs to the other player
						return true;
					}
					else{	//invalid jump
						return false;
					}
				}
				else{	//invalid jump
					return false;
				}
			}
			else if (newBoard[oldY][oldX].GetPiecePlayer() == 2){//if the piece belongs to player 2
				if((newX == oldX + 2 || newX == oldX - 2) && (newY == oldY + 2) ){//if the piece is making a valid jump (2 squares away diagonally 
					if(newBoard[newY][newX].IsAvail() && IsOtherPiece(oldX, oldY, newX, newY)){//if the square moving to is free and the piece between belongs to the other player
						return true;
					}
					else{	//invalid jump
						return false;
					}
				}
				else{	//invalid jump
					return false;
				}
			}
		}
		else{	//if the piece is a king belonging to either player
			if((newX == oldX + 2 || newX == oldX - 2) && (newY == oldY + 2 || newY == oldY - 2)){	//if the piece is making a valid jump (2 squares away diagonally 
				if(newBoard[newY][newX].IsAvail() && IsOtherPiece(oldX, oldY, newX, newY)){	//if the square moving to is free and the piece between belongs to the other player
					return true;
				}
				else{	//invalid jump
					return false;
				}
			}
			else{	//invalid jump
				return false;
			}
		}
		return false;
	}