If you are really lucky, the rattles could be just that the clearances between the valves and rocker arms are a little on the loose side, BUT....I am assuming that you do NOT mean the shafts move "side to side", but that they actually don't have the correct fit between themselves and either the holes machined into the head cover and/or the rocker arms themselves, right? "Side to side" movement should be prevented by the ends of the holes machined into the rocker cover going one way and by the tubular inserts that let the cylinder studs pass through and are between the shafts and the rocker plugs going the other way.
The cure for either of those tolerances being out of spec would be to first closely inspect and measure all of the parts concerned. Only then will you be able to decide which parts are worn out of spec, but those rocker arms AND, ESPECIALLY the rocker shafts are pretty hard and resist wear quite well if there has always been an adequate supply of oil there. (there has been, right? If maybe NOT, you should also check out WHY NOT and then check out the rest of the engine to see it anything else has been damaged due to lack of oiling). In my mind, the first suspect would be that the rocker cover had been either damaged by poor installation techniques OR by wear as the engine operated...I say this because that cover is aluminum and is, therefore, soft.
ANYWAY, once you determine which part(s) are worn out of dimension/specs, then what you have to do is to find some replacements for them. Personally, I wouldn't have any qualms about using a GOOD used cover, BUT ME...I'd be more comfortable replacing both rockers AND shafts if either one of those parts seem to be the culprit, especially as the parts of the rockers that contact the cam CAN wear. One thing I'd look at if using a replacement cover (either new OR used) is to be sure that where machined spots are on it to mate it to parts like the covers at the ends of the cams and the cam bearing areas are correct and match up perfectly to their matching parts (being a paranoid worry wart!) IF the rockers are badly worn where they contact the cam, take a good, CLOSE look at the cam lobes to be sure they have not been damaged, which is quite likely if the rockers are pretty bad. IF you do wind up using the same rockers you took out of the engine, you should try to get them back into the same positions from which they were removed. (you DID mark them as to where they came from, right?!?!?)
The whole point of all this is to be sure that the valve train is all back in spec before you put the engine back together. If it is NOT back in spec, you WILL BE just asking for more trouble!
I hope this helps...if you have other questions, please ask!!