Fixed Animator class to static and direction detector