his mind tended to wander to more interesting matters , and he soon lost track of what he was supposed to be doing , which led to losing his place in the dance , or worse , trampling on osgoode 's toes .