this code largely used if else statements, as well as different functions, acting as rooms of the maze.