got a working turn animation, but I'm not too happy with the code