How to make that in a loop?:

def touch_began(self, touch):
    if touch.location in self.layer1.frame: 
        sound.play_effect('Click_1')
        self.root_layer.add_layer(self.layer2)
        self.root_layer.remove_layer(self.layer1)

        if touch.location in self.layer2.frame:
            sound.play_effect('Beep')
            self.root_layer.add_layer(self.layer1)
            self.root_layer.remove_layer(self.layer2)

               if touch.location in self.layer1.frame:  
                        sound.play_effect('Click_1')
                        self.root_layer.add_layer(self.layer2)
                        self.root_layer.remove_layer(self.layer1)

                                ...