Add checkpoints

New walls are now segmented into one piece per affected open leaf. Each
segment gets a checkpoint, which is the point at which the cursor will
leave that leaf (haha). Currently, those checkpoints don't do much except
prematurely end the trajectory once the last checkpoint has been crossed.