In The Great Maze, go to either The Battlefield Fortress or The Swamp. When you see a purple arrow pointing to a door, enter it. If there are no trophies, go through the gate. After the cutscene with Tabuu and Sonic, select six characters to battle Tabuu.