I have a main while true loop at the very beginning of the program and then later in the program there is another while true loop. But as soon as my code enters the second while true loop my program crashes
structure of the code:
while True:
object.update()
#inside the object update function
while self.counter < self.player_amount
do something