Yes, I meant the paddle, but doesn't matter.
I didn't make this algorithm myself, I bought it on the store for $25 and it's great.