update block and attack