How do I format my code so return object is in the function?

Hi guys! I am working on code for a homework project that is meant to be a game, and I believe most of my code is correct (but please tell me if not, it’s for python3) except for some reason no matter how I indent it it says the return object is outside of the function. Here is the code below:

import random
def move(location):
d1 = 0
d2 = 0
while location < 100 and d1 == d2:
d1 = random.Number(1,6)
d2 = random.Number(1,6)
print ("Roll: ", d1, “+”, d2, “=”, d1+d2)
if d1 == d2:
print (“doubles”)
location = location + d1 + d2
if location > 100:
location = 100
print (“On square”, location)
if location // 11 == 0:
print (location - 6)
print (“back 6 to square”, location)
elif location // 13 == 0:
location = (location + 4)
print (location + 4)
print (“forward 4 to square”, location)
return location

import random
def move(location):
    d1 = 0
    d2 = 0
    while location < 100 and d1 == d2:
        d1 = random.Number(1,6)
        d2 = random.Number(1,6)
        print ("Roll: ", d1, “+”, d2, “=”, d1+d2)
            if d1 == d2:
                print (“doubles”)
                location = location + d1 + d2
            if location &gt; 100:
                location = 100
                print (“On square”, location)
            if location // 11 == 0:
                print (location - 6)
                print (“back 6 to square”, location)
            elif location // 13 == 0:
                location = (location + 4)
                print (location + 4)
                print (“forward 4 to square”, location)
    return location

You code is not indented properly!