new impl of board.isAttacked