Touch Screen Breakout Paddle

So I’ve done some programming before, but I haven’t been doing this in a while and I got a little rusty.

I’m trying to make a Breakout phone game, but I can’t properly program the paddle right. It goes nuts when touching these walls I’ve placed (I’m going to limit its range of movement to the screen edges later), and it doesn’t follow my finger as I want it to. Here are some screenshots down below for context:

If anyone is willing to help, then thanks in advance for whatever solutions you may provide.

So new update: I managed to solve that problem by using a Clamp node, but now the problem is that the paddle now snaps to the edge of the screen where I want it to just flat-out follow my finger. If anybody can still provide an answer to my probelm, please let me know.