You wrote the if statements wrong in the Ball class. The Time can't be lower than 10001 and higher than 20000 at the same time. This means that it will go to the last statement and the speed will be 8.
// in the world class
// instance field
private int timer;
// in act method (still in world class)
if (!getObjects(Player.class).isEmpty())
{
timer = (timer+1)%600;
if (timer == 0) Ball.speed++;
if (timer%30 == 0)
{
addObject(new Ball(),Greenfoot.getRandomNumber(503)+48, 17);
addObject(new Ball(),Greenfoot.getRandomNumber(503)+48, 17);
}
}
// in the Ball class
// class field
static int speed = 2;
// remove the 'Speed' method with its call from act
// remove the 'Time' field and the 'Ball' constructor method
// in the Player class
// remove the count field and the 'AddBall' method with its call from act
// remove the Timer field and the 'Time' method with its call from act