Started implementing attack function