How do you unlock all the cheat characters in super smash bros melee?

go to the 1p mode and do classic with young link when you're half way through take a snapshot and then fight your way to the MASTER HAND!!! after you beat him it should say challenger approching! fight the master hand then you play as him. do the same for thee others...