The Labyrinth : Implementing logic when we found the target and need to come back to the start