# If the bot finds the location, move the character for pt in zip(*loc[::-1]): print("Location found, moving character") # Example movement, replace with actual movement logic pyautogui.press('w') break