added rotateTowards function
advanced sprite with rotation and animation