Added all code up to before the animation of the rings