refactored attack and added skeleton for delete line