public void move() {
        collision();
        ball.x += xDirection;
        ball.y += yDirection;
        
        // Bounce the Ball When the Edge is Detected
        if(ball.x <= 0) {
            setXDirection(+1);
            p2Score++;
        }
        if(ball.x >= 385) {
            setXDirection(-1);
            p1Score++;
        }
        if(ball.y <= 25)
            setYDirection(+1);
        if(ball.y >= 285)
            setYDirection(-1);
    }