When I arrive the boss room, Luigi step on Mario. Then, Mario kick him into lava automatically. After that, the game is over.
But I remembered that players can control Mario to fight with Luigi in the boss room. Both of Mario and Luigi can be kicked into lava. It judged whether you win or lose