so your gameover class is the one creating the scoreboard,
addObject(new Scoreboard(getCounter().getValue()), getWidth()/2, getHeight()/2);
addObject(new Scoreboard(getCounter().getValue()), getWidth()/2, getHeight()/2);
Asteroid asteroid = (Asteroid) getOneIntersectingObject(Asteroid.class); if (touched && asteroid == null) { touched = false; } else if(!touched && asteroid != null) { getWorld().addObject( new Explosion(), getX(), getY()); ((Space)getWorld()).gameOver(); getWorld().removeObject(this); touched = true; }