Trying to fix rotation

I can't get the entity to rotate properly :(