Rename the sprite "Maze". Add this code to the maze sprite.
Next you need to draw a maze.
Hold down Shift while dragging to make perfectly vertical or horizontal lines.
Put this code on your hero so they can't pass through walls. (You need to make the variables).