I fixed it but now there is the following underlined red text:
"cannot find symbol - variable CounterM"
and:
"cannot find symbol - variable score"
With the following code:
if(getObjects(Dodge_Speler.class).isEmpty()) //als er geen Spelers zijn (speler is dus dood)
{
GameOverDodge go = new GameOverDodge();
go.CounterM.score = CounterM.score;
Greenfoot.setWorld(go);
}

