More generic maze drawing.