Implemented palette cycles and rotation