title: Python game using TURTLE
body: <p>I am attempting to create a game where a turtle goes around and eats dots. One dot should appear. When the turtle goes over the dot, the dot that has been eaten should disappear and a new random dot should appear. Additionally, the turtles size should grow slightly each time. So far, I have this:</p>
  
  <pre><code>from turtle import *
  from random import randrange
  
  FRAMES_PER_SECOND = 10
  bgcolor('black')
  
  
  def turnRight():
      global turtle
  
      turtle.right(15)
  
  def turnLeft():
      global turtle
  
      turtle.left(15)
  
  def dotGood():
      x = randrange(-250, 250)
      y = randrange(-250, 250)
      pen1 = Pen()
      pen1.hideturtle()
      pen1.penup()
      pen1.goto(x, y)
  
      pen1.dot(10, "red")
  
  def eaten(z):
      global turtle
      global moving
  
      if turtle == dotGood():
          z = z + .25
  
  def move():
      global turtle
      global moving
  
  
      if moving:
          for i in range(1):
              turtle.penup()
              turtle.shape('turtle')
  
              size = .5
              eaten(size)
              turtle.shapesize(size, size, size)
  
              turtle.color('green')
              turtle.forward(10)
              ontimer(move, 10 // FRAMES_PER_SECOND)
  
  def start():
      global moving
  
      moving = True
      move()
  
  def stop():
      global moving
  
      moving = False
  
  
  def border():
      pen1 = Pen()
      pen1.color("yellow")
      pen1.pensize(3)
      pen1.hideturtle()
      pen1.speed(0)
      pen1.penup()
      pen1.goto(-275, -275)
      pen1.pendown()
      for i in range(4):
          pen1.fd(550)
          pen1.left(90)
  
  
  def main():
      border()
      dotGood()
      global turtle
  
  
      turtle = Turtle()
  
  
  
      onkey(turnRight, "Right")
      onkey(turnLeft, "Left")
      onkey(start, "Up")
      onkey(stop, "Down")
      listen()
  
  
  
  if __name__ == "__main__":
      main()
  </code></pre>
  
  <p>Right now, all dots continually spawn instead of one at a time, the turtle doesn't grow when it goes over a dot, and the dot doesn't disappear when the turtle goes over it. What can I do to fix this?</p>