From the Super Mario Wiki
Coincentration is a Super Mario 64 DS minigame in which Wario punches a Moneybag and coins fall out of the sky into Brick Blocks. It later appears in New Super Mario Bros. as a multiplayer and single player Puzzle minigame. Its name is a portmanteau of "coin" and "concentration". This minigame is based on the game Minesweeper.
The player must tap the bricks in which the coins fall with the Stylus. If the player taps a brick that has no coins, it's Game Over. In the multiplayer version in New Super Mario Bros., the same thing happens, but each player takes turns choosing a block. If a player taps a block with no coins, the block will break, and the player will lose coins. Once all the coins are found, the person with the most coins wins.
 In-game instructions
Pay attention to where the falling coins land. Touch the blocks to retrieve the coins. But if you choose the wrong block, your game will end.