Avoiding getting stuck in a loop

Printable View