Refactored code and fixed:
 - Faster attack animation
 - Player stops when attacking
 - Enemy stucked on the wall