added player attack animation logic