int numberOfCheckPoints = getWorld().getObjects(Checkpoint.class).size();
CheckPoint checkPoint = (CheckPoint)getOneIntersectingObject(CheckPoint.class);
if(isTouching(CheckPoint.class) && distanceCompleted + 1)%numberOfCheckPoints = identificationNumber)
{
distanceCompleted++;
if (distanceCompleted == 20*numberOfCheckPoints)
{
Greenfoot.stop();
}
}