Further work on Animation Manager

-Textures are now flipped automatically.
-Animations are now set using setNewAnimation().
-Fixed a bug in setting the next animation if the current animation is
flagged as not looping.