Add a routine to check opponent's attack.