add game attack function