Getting a Gameboy

After you beat the Sunken Ship, you go back to the Mushroom Kingdom inn. Make sure you have 500 coins or more. Go talk to the boy in the corner of the 1st floor. Talk to him a few times, and then he'll say he's finished and ask you if you want to buy it. It costs 500 coins. If you have it, he'll give you the Gameboy! 1