when you select the magic wand, there should be a list of option at the top. If you select RGB value and put the tolerance up, it will select all pixels connected to the pixel you clicked on with similar RGB values.