You can add a method in the Enemy class:
And then, you can use this in line 5:
To make it increase every 100 points and not only when it is at 100:
public static void increaseSpeed(int x)
{
speed += x;
}Enemy.increaseSpeed(5);
//instead of this: if (counter.getValue() == 100) //use this if (counter.getValue() % 100 == 0)

