refactored the enemy class.