Add rotate() method in BlockRotator class and add default BlockRotator in main class.