I was going to try and make a turtle race that makes you pick a turtle name and try to be able to guess the turtle that will win the race i have had a few issues so far but right now i cannot figrure out what went wrong so can someone tell me why this error code appeared? (i am new to stack overflow)

```
import turtle
import random
from turtle import *
from random import randint
speed()
penup()
goto(-140, 140)

for i in range(15):
  write(i,align = "center")
  right(90)

  for num in range(8):
    penup()
    forward(10)
    pendown()
    forward(10)

  penup()
  backward(160)
  left(90)
  forward(20)
A = turtle.Turtle()
A.shape('turtle')
A.color('red')
A.penup()
A.goto(-160, 100)

B = turtle.Turtle()
B.shape('turtle')
B.color('red')
B.penup()
B.goto(-160, 70)

C = turtle.Turtle()
C.shape('turtle')
C.color('red')
C.penup()
C.goto(-160, 40)
random.randint(1, 5)
random = random.randint(1, 7)

D = turtle.Turtle()
D.shape('turtle')
D.color('red')
D.penup()
D.goto(-160, 10)
for i in range(100):
  A.forward(randint(1,5))
  B.forward(randint(1,5))
  C.forward(randint(1,5))
  D.forward(randint(1,5))
if A.xcor > B.xcor and A.xcor > C.xcor and A.xcor > D.xcor:
  print("Wow the turtle you picked you picked wow the race!")

```