Move the rotation management out of RuinWall
Refactoring the code