Fix the animate class so that when you walk into an enemy you will not attack it