Changed the way that the attack works with enemies, now the enemies will stop when attacking and only move if the player is outside of the attackRange.