private Piece checkCase(Piece[] B,int X, int Y,boolean isCapture) {
		if (!(Utils.isVoid(B,X,Y))) {
			Piece obstacle = Utils.getPiece(B,X,Y);
			//Warning : pawn can move only to capture vertically
			if ((isCapture) && (obstacle.isWhite()!=null) && (isWhite()!=obstacle.isWhite())) {
				possibleMoves.add(obstacle.getPos());
			}
			return Utils.getPiece(B,X,Y);
		} else {
			//Warning : pawn can move to void case only when not capturing
			if (!isCapture) possibleMoves.add(Utils.getPos(X,Y));
			return null;
		}
	}