Hittest maze problem?

I made this maze and the object was to get this ball through the maze without hitting the edge of the maze anywhere. But I found that in order to get the hittest to work correctly I had to break apart my maze in little pieces because when I converted my maze into a movie clip it drew a huge box around the entire thing and when the ball hit that box u would lose. OK, but that was a long process for even a small square based simple maze. My question, Is there a way to use hittest so that it doesnt detect the box but only the drawing part. I know you can use x and y but I dont see how you can really do that with a maze that has lines going everywhere. WOW, thats long, sorry! I attached a simplified example to explain what I mean.