maze: shortened lines exceeding 80 characters. rewrote some parts more clearly.