Updated the attack method in the GameLoop and States