Code changes

Finished rotation and edited the code rules.