I'm trying to use `turtle` in order to draw a rectangle, and then 32 equal cells inside it. But I somehow can't get it right, I don't know why.

Here is the code I've written:

```
import turtle, tkinter, datetime, time

turtle.setx(-400)
turtle.sety(200)
turtle.pendown()
turtle.pencolor('#00807c')
for i in range (0,4):
    x = 800
    if i%2 == 0:
        turtle.fd(x)
    else:
        turtle.fd(x/2)
    turtle.right(90)

def cells(position):
    for i in range (0,4):
        x = 100
        turtle.fd(x)
        turtle.right(90)
        if turtle.pos() == position:
            turtle.fd(x)
            position = turtle.pos()

for j in range(0, 8):
    cells(turtle.pos())
turtle.done()

```

The result is weird, it only draws three or four cells and then the program ends.
I'd be grateful if somebody could possibly help me with this problem. Thanks.