every time I run the program, he adopts the first pet which appears



how do I fix?