Apologies if this is a duplicate, the problem is very hard to word in a search

The bivariate distribution of random variables X and Y is uniform over the triangle with vertices (1,0), (1,1), (0,1). A pair of values $x,y$ is chosen at random from this distribution and a (perhaps degenerate) triangle ABC is constructed with BC=$x$ and CA=$y$ and AB = $2 -x -y$. Show that the construction is always possible and that $ABC$ is obtuse if and only if $$y>\frac{x^2-2x+2}{2-x}$$ Deduce that the probability ABC is obtuse is $3-4 \ln 2$

This question regards the "Deduce that" part, and I will quote the obtuse result

I'm going to (WLOG?) roll X first and say x=t. With this paramaterisation, I can write $$P(y>\frac{x^2-2x+2}{2-x})=\int_0 ^1{P(X=t)P(Y>\frac{t^2-2t+2}{2-t}|X=t)}$$ Since $X\sim U[0,1]$, then $P(X=t)=t dt$ and if you draw a sketch of the triangle, it is clear $Y\sim U[1-X,1]$

therefore $P(Y\le u|X=t)=\frac{u-(1-t)}{t}$ for $1-t\le u \le 1$, so $P(Y>\frac{t^2-2t+2}{2-t}|X=t)=1-\frac{1}{2-t}$ after taking the compliment and letting u equal the rational function.

Putting these into the integral I get $P(A)=\int^1_0{t(1-\frac{1}{2-t})}dt=\frac{1}{2}(3-4\ln2)$

I can't see at all where this factor of one half came in. It feels hard to believe that my method was wrong since my answer is very similar to the correct answer. I think I'm missing one last bit and I can't see what it is.