Here the mouse triggers the next checkpoint when it touches the previous one. This prevents cheating and looks better than painting checkpoints on he track but is harder to code for 2 player versions.
Each checkpoint is a sprite that is told where to go to when the background switches.