By the way DX and DY are the speed of the ball. If you want to detect a collision with the paddle, then you must compare the argument with the paddle's coordinates and the space it use. You should add that on collission(X,Y)