Add method animationCheck
Deleted the condition duplicate.