change activity with time

So I trimmed a bunch of the extra "delay"s out and it responds quickly to changes in direction but I still cant get it to turn around after 10 seconds... Any suggestions?