I am currently struggling to make it so that when a car (either the player car or opponent) gets to 2 different finish lines for each opponent, an image will pop up with either 'winner' or 'you lose'. this would then take them to the next level.
// instance field
private Actor finishActor;
// in act method
if (finishActor == null && isTouching(FinishLine.class))
{
finishActor = getWorld().getObjects(Winner.class).isEmpty() ? new Winner() : new YouLose();
addObject(finishActor, getX(), getY()-50);
}