support rectangle maze