code clean up in the enemy class