Make entities actually follow their paths; fix a logic bug.