worked on the needle rotation logic

I don't know why the needle gets cut off when it is being rotated.