You got 2 ballspeeds, one global and one in the class
Get rid of the global one and change the one in the cöass in mousePressed
You got 2 ballspeeds, one global and one in the class
Get rid of the global one and change the one in the cöass in mousePressed