added rotateTowards function
advanced sprite with animation and rotation