I got it to work. I added a second for each loop. Now whenever i start the race from the beginning it removes the last checkpoint.
As always, there is definitely a better way to do this but I am just glad I got it working proplerly.