This is probably the most famous maze in all of computer gaming. It's an honor just to be lost in it.
To distinguish the rooms from each other, drop various objects in them.
Then you can make a grid and chart out which directions go from where to where.
The main thing is to get the pirate's treasure chest and any treasures he's stolen from you.