Tracing cell trajectories in a biofilm