Wall Cover Rotation Issue

I hope I can explain this right, im working off a video on a wall cover system and I have come into a problem with the way i have set it up (GIF Below)

[Problem GIF][1]

And here is the code so far;