Completed full rainbow cycle code, few bugs still