From the Super Mario Wiki
The player controls a gyroid tilting the system, and they have to line up their gyroid with the matching outline, which usually vary between facial expressions and arm placements. The player must press The A Button to join the gyroid and the outline. If the correct outline is picked, the gyroid and the other outline wave their arms up and down. If it's incorrect, the gyroid hits the outline and falls to the ground.