This is the code. I don't know why but the goal does not move when I run the code. I am really new to coding so excuse me if it is something silly. Thank you so much for all your help.
if isCollision(player, goal):
goal.setposition(random.randint(-300, 300), random.randint(-300, 300))
goal.right(random.randint(0,360))
goal.forward(1)
Should not this make the goal move? No errors were detected in the code. This is a link to the code: https://pastebin.com/mczU1xpu