I used chatgpt to edit my code. It kept making very silly errors which chatgpt wasn't able to fix without messing up everything. I finally compiled it and realized it didn't respect my parameters to exit the position