Prepare maze