Added complete flags

Added flags so that the interrupt directly cuts off the while loop.
Doesn't seem to work. I think the best option is putting the turns in
the interrupt.