My python text adventure won't work!

# initialise the game
import random
tries=int
tries=0
side=int
side=0
back=0
#score=0
moves=0
finish=0

def apartment():

    print ("   _._._._._._._._._._._._._._._._")   
    print ("  | ___   ___    ___    ___   ___ |")
    print ("  ||_|_| |_|_|  |_|_|  |_|_| |_|_||")
    print ("  |IIIII_IIIII__IIIII__IIIII_IIIII|")      
    print ("  | ___   ___    ___    ___   ___ |")
    print ("  ||_|_| |_|_|  |_|_|  |_|_| |_|_||")
    print ("  |IIIII_IIIII__IIIII__IIIII_IIIII|")
    print ("  | ___   ___    ___    ___   ___ |")
    print ("  ||_|_| |_|_|  |_|_|  |_|_| |_|_||")
    print ("  |IIIII_IIIII__IIIII__IIIII_IIIII|")
    print ("  | ___   ___   _____   ___   ___ |")
    print ("  ||_|_| |_|_|  o~|~o  |_|_| |_|_||")
    print ("  |IIIII_IIIII__|_|_|__IIIII_IIIII|")
    print (" |''''''''''''' ----- '''''''''''''|")
    return

def ■■■■():
    print("                            ,-.                          ")           
    print("       ___,---.__          /'|`\          __,---,___  ")        
    print("    ,-'    \`    `-.____,-'  |  `-.____,-'    //    `-. ")      
    print("  ,'        |           ~'\     /`~           |        `.")      
    print(" /      ___//              `. ,'          ,  , \___      \ ")   
    print("|    ,-'   `-.__   _         |        ,    __,-'   `-.    | ")   
    print("|   /          /\_  `   .    |    ,      _/\          \   | ")  
    print("\  |           \ \`-.___ \   |   / ___,-'/ /           |  / ") 
    print(" \  \           | `._   `\\  |  //'   _,' |           /  / ")     
    print("  `-.\         /'  _ `---'' , . ``---' _  `\         /,-'")     
    print("     ``       /     \    ,='/ \`=.    /     \       '' ")         
    print("             |__   /|\_,--.,-.--,--._/|\   __| ")                 
    print("             /  `./  \\`\ |  |  | /,//' \,'  \ ")                 
    print("eViL        /   /     ||--+--|--+-/-|     \   \ ")                
    print("           |   |     /'\_\_\ | /_/_/`\     |   | ")               
    print("            \   \__, \_     `~'     _/ .__/   /")            
    print("             `-._,-'   `-._______,-'   `-._,-'")

def door():

      print("      __________")
      print("     |  __  __  |")
      print("     | |  ||  | |")
      print("     | |  ||  | |")
      print("     | |__||__| |")
      print("     |  __  __()|")
      print("     | |  ||  | |")
      print("     | |  ||  | |")
      print("     | |  ||  | |")
      print("     | |  ||  | |")
      print("     | |__||__| |")
      print("     |__________|")
      return

def stairs():
    print("                             aaaaaaaaaaa")
    print("                             8'b,     'Ya")
    print("                             8  'b,     'Ya")
    print("                      aaaaaaa8,   'b,    'Ya")
    print("                      8'b,    'Ya   '8''''''8")
    print("                      8  'b,    'Ya  8      8")
    print("               aaaaaaa8,   'b,    'Ya8      8")
    print("               8'b,    'Ya   '8'''''''      8")
    print("               8  'b,    'Ya  8             8")
    print("        aaaaaa88,   'b,    'Ya8             8")
    print("        8'b,    'Ya   '8'''''''             8")
    print("        8  'b,    'Ya  8                    8")
    print(" 8aaaaaa8,   'b,    'Ya8                    8")
    print(" 8'b,    'Ya   '8'''''''                    8")
    print(" 8  'b,    'Ya  8                           8")
    print(" 8,   'b,    'Ya8                           8")
    print("  'Ya   '8'''''''                           8")
    print("    'Ya  8                                  8")
    print("      'Ya8                                  8")
    print("        ''''''''''''''''''''''''''''''''''''")
def start():
        print("Your command was: ",action)
        door()
        print("\You are in the hallway outside your neighbour's door again!")
        print(name,", I would suggest that escaping this weird place is the best thing to do. But haha you can't do that. You're stuck until you find a way out.")
        print("Well, where now?!?")
        return

def stairs():
        print("Your command was: ",action)
        print("\nYou are on the 2nd flight of stairs. Where now?.")
        print(name,", Ther's not much to do on the stairwell? Um... This is awkward.")
        stairs()
        print("Where would you like to go?")
        return
def wyd():
        print ("What are you doing?!?! Why can't you just escape?")
        print(name,", I'm not sure what's going on in your brain. But I'm pretty sure that it's not going to get you out.")       
        print("Here is a clue")
        print ("IT ISN'T JUST GOING TO HAPPEN BY YOU STANDING THERE!!! DO SOMETHING! ")
        return

def ■■■■():    
        print("Your command was: ",action)
        print("\nOh looks like you've been sucked into HADES' vortex.")
        print("YOU'RE IN ■■■■ NOW! Sorry about that.")
        ■■■■()
        print("Try get out.")
        return
    
    
def Mrs_Jones():
        print("OH GOD! You've walked in on Mrs Jones doing her breakdance practice.")
        print("She's wearing a bright pink tracksuit and 3$ chains oh and a snapback with enamel letters spelling out 'C4T L4DY'.")
        print("She's also dabbing very frivolously... she's 80 going on 18.")
        print("Go on make another decision. Where shall we go next?")
        return 
    
    
def end():
        print("Your command was: ",action)
        print("\nWELL DONE! YOU HAVE ESCAPED!!! YOU MANAGED TO LEAVE THE APARTMENT BLOCK, RETURN FROM ■■■■ AND MANAGE TO STAY ALIVE!!!")
        print ("and very trying it was.    You win!\n") 
        score=moves
        if moves ==2:
            print("*****You have scored maximum points *****")
        if moves >2:
            print(" You escaped in ",moves," turns, gaining",11-moves,"points")
            print(" The maximum possible was 8 points.")
        

def lives():
    if moves ==0:
        print(name,", just to let you know that you can try 8 commands before you die\n.")
        
    if moves ==3:            
        print("You are running out of energy")
    if moves ==5:
        print("You have only three more tries left")
    if moves ==10:
        print("HAHA YOU HAVE BEEN SUCKED INTO ■■■■ AGAIN, AND WON'T BE ABLE TO GET OUT NOW. I CONSPIRE WITH THE DEVIL TO GIVE HIM ALL MY GAMER VICTIMS.")
        print("___________________________________________________________")
        print(name,", you just ran out of luck. SORRY 'BOUT THAT M8.")
    return
    
# INPUT
print("You're now playing THE APARTMENT!!!!!!!!!!!!!!.\n")
name=input("Please write your name. >")
print(name," You are in your apartment block. You're standing in front of your very suspicious neighbour's door. You've never seen them, but they've lived there for 10 years.")
apartment()
door()

while True:
    #print(i) #Used to show the number of guesses made
    room = "start"
    phrases=["Face it. You're pretty much dead. You just saw you neighbour, a llama, stab a guy 37 times in the chest.","There surely is no way out of here!","What if you cannot find your way out?","Did you think you heard a noise/","OH LOOK A PIG THAT FLIES!"]    
    moves=moves+1
    #print(moves) #used to check the number of moves-score
    if moves>8:
        break
    
    print("\nActions available: forward, ,side, backward.")
    print("***************************************************************")
    
      # Loop 8 times the player is not in the end room
      # Check what room the player entered
      # Give the correct action options
      # Update the room variable
      # Give feedback based on the room entered
      
# PROCESS

    action = input("> ")
    

    if action == ("forward"):
        tries=tries+1
        if tries==1:
            room = ("stairs")          
        if tries==6:
             room = ("end")
             
             
    elif action == ("backward") :
        back=back+1
        room = ("stairs")
        if back==2:
         room = ("wyd")
        
    elif action ==("side"):
        room = ("■■■■")
        if side==2:
            action=("Mrs Jones")
    else:
        room ==("start")
        
 #OUTPUT       
    if room == ("■■■■"):
        ■■■■()   
    if room == ("Mrs Jones"):
        Mrs_Jones()              
    if room == ("stairs"):
        stairs()
    if room == ("wyd"):
        wyd()     
    if room == ("start"):
        start()
    if room == ("end"):
        end()

if moves>10:
    print("\n*************************************************")
    print("STOP")
    print("You are not going any further. You have run out of energy")
    print("\n****************The end***********************")
input("Press enter to close the program")

IT WOULD BE REALLY HELPFUL IF YOU CAN HELP :grinning:

look at

def stairs():
        print("Your command was: ",action)
        print("\nYou are on the 2nd flight of stairs. Where now?.")
        print(name,", Ther's not much to do on the stairwell? Um... This is awkward.")
        stairs()
        print("Where would you like to go?")
        return

and

def ■■■■():    
        print("Your command was: ",action)
        print("\nOh looks like you've been sucked into HADES' vortex.")
        print("YOU'RE IN ■■■■ NOW! Sorry about that.")
        ■■■■()
        print("Try get out.")
        return

Basically what happens is that you are looping these two functions forever. What I think you want to do is draw the images instead inside of those functions. Try naming the functions that draws the images to something different.

thank you!

:slight_smile: