Rear wheel moving from side to side
Check out the link below. This question has been answered already and they do a pretty good job of explaining the possible issues/solutions.

Rear bike wheel wobbling