changed attack animation to not run infinitely